Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with: Mehul Saiya
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with: Mehul Saiya@mehulsaiya )

Tim White

Member since Dec 9, 2009

Recent Blog Comments By Tim White

  • Using Script Tags As Data Contains In AJAX-Powered jQuery

    Posted on Dec 15, 2009 at 10:56 AM

    @Kay, jQuery ajax calls are asynchronous by default(check the jQuery.ajax docs). This means your javascript continues executing while waits for the response from your ajax call. So your code to uncomment the script tag won't work because the content has been loaded yet. Typically, you use a cal... read more »

  • Using Script Tags As Data Contains In AJAX-Powered jQuery

    Posted on Dec 13, 2009 at 6:14 PM

    @Ben Nadel, > How do you uncomment it? I use jquery and a JS regex to replace the inner html of the container div. In my previous example, I didn't properly comment out the script tags. Here's a better example of content with script tags injected into the DOM: <div id="foo"> <!-- ... read more »

  • Using Script Tags As Data Contains In AJAX-Powered jQuery

    Posted on Dec 9, 2009 at 6:08 PM

    Thanks for this, helped prevent me from pulling out more of my hair. My situation is that I am writing an jQuery-AJAX-powered facebook app which individually renders XFBML elements using facebook's js library. Example content injected into the DOM: <code> <div id="myXfbml"> <script... read more »