That's normal behaviour. To get your dynamically loaded scripts to run
you need to append them to the head of your document.

Something like $('#ajaxloadedcontent script').appendTo('head"); in
your 'success' function should work.

ricardo

On Sep 18, 4:10 pm, Laker Netman <[EMAIL PROTECTED]>
wrote:
> I've been working on an issue for a while that's got me beat. I have
> googled quite a bit, and found this 
> article,http://weblogs.asp.net/adamgreene/archive/2007/09/11/ajax-flash-cs3-a...,
> that describes my issue, but the solution is not jQuery-oriented.
>
> Quoting from the article: "When you update a block of text via AJAX
> that has embedded script tags, the script doesn't run."
>
> This is *exactly* the issue I'm running into. When a menu item is
> clicked, I am simply loading the HTML SCRIPT tag block that contains
> the JS to run a Flash bit into a DIV block. The Flash never runs. I've
> also tried using the "jquery.flash" plugin with no success. Same
> symptom.
>
> I know the ajax call is working correctly, because I can place static
> content in the file containing the Flash script block and the static
> content shows up as expected. Also, if I place the Flash script code
> on a page by itself, the flash loads on that page.
>
> So, how do I make dynamically loaded and *run* Flash scripts run using
> jQuery?
>
> TIA,
> Laker

Reply via email to