The head would have already been sent to the browser by the time you are making your AJAX call. You're going to have to eval the code to get it inserted into the DOM on the client side. Until it's registered in the DOM the browser does not know it exists and cannot use it.Thanks,Christine
Original Message
Subject: [jQuery] Re: How to dynamically load/add inline _javascript_?
From: yellow1912
Date: Fri, January 09, 2009 4:15 pm
To: "jQuery (English)"
I see. Thanks Josh. What if I dynamically insert the code into the
head area, would that has the same effect?
Regards
Raine
On Jan 9, 4:05 pm, "Josh Nathanson" wrote:
> I think you have to strip the tags off before you run eval(). I
> just tried a little test using firebug:
>
> Eval("