I don't seem to be explaining the problem very well here.Perhaps I've caused confusion with an Alert earlier in the process (showing that the Ajax file had loaded), so I've removed In normal HTML you can insert 'script' tags almost anywhere (though not good practice) so I hoped the same might be true here. I created a simple html file, where i load a scripts.js file and execute a slideshow on the page. Dynamic Script Pattern You are right, with a single AJAX call was I going to update two div container, because both had new data.
Having identified the problem I did discover there are some work-arounds (like using 'eval()') but in general I felt they were more complicated to implement than my eventual solution. share|improve this answer edited Jan 6 '11 at 21:55 answered Jan 6 '11 at 21:32 Chocula 1,23011218 1 Yup, I'll use this! It's not working so far - where should I put the code exactly? I tried doing a few things with this code but I couldn't get it to work.
It didn't work. That code should only run after the contents of the div have been loaded. http://api.jquery.com/jQuery.getScript/ jQuery.getScript( url, [ success(data, textStatus) ] ) url - A string containing the URL to which the request is sent. his comment is here This site is not affiliated with the WordPress Foundation in any way.
What could cause humanity to migrate from land to water? Any suggestions ,please? Published June 4, 2011 Write a Comment Leave a Reply Cancel reply 24 Comments Peter Hollingsworth December 13, 2011 I am trying this technique but finding that jquery can't find the For a fuller explanation see the original post.