If your AJAX call returns a fragment with a script tag in it, then dropping it into the page via the jQuery html(fragment) method should run the script.
On Fri, Sep 11, 2009 at 9:36 AM, Jan <jan.d...@gmail.com> wrote: > > I'm stuck with the same problem, i'm also trying return a 'partial > page' containing a script tag with some javascript i would like to see > excecuted .. > > I've tried the textarea suggestion but can't seem to get it to work (i > tried the dataTypes 'json' and 'script' and even 'xml' out of sheer > desperation), so if anyone has any ideas they are more than welcome! > > Jan > > On Aug 27, 12:01 am, Lay András <laysoftjqu...@gmail.com> wrote: >> Hello! >> >> On Wed, Aug 26, 2009 at 9:04 PM, Mike Alsup<mal...@gmail.com> wrote: >> > Kostya is correct. Try embedding the response in a textarea element - >> > the plugin will automatically extract if for you and no escaping is >> > needed. >> >> This don't works, because response embedding in a textarea only needs, >> if the response type script, or JSON. In my example, the response type >> is HTML. >> >> Lay -- Turtle, turtle, on the ground, Pink and shiny, turn around.