I struggled with this issue for 2 days some time back, cursing IE under my breath all the time. Well there's no real logic that i could find (not that logic applies to IE :-). But here's my illogical observation:
In IE, when you set the innerHTML for any element, for some mysterious reason, it ignores all script tags untill it finds some text. I've not done extensive test to isolate the problem as yet, but for now, got around the problem by merely putting some dummy text at the beginning of the response... silly, but it works. If someone can figure out the "logic", would be obliged for the enlightenment.
Regards
Ashutosh
On 9/9/06, Lewis, David <
[EMAIL PROTECTED]> wrote:
Unfortunately, removing the <![CDATA[ ... ]]> doesn't cure the problem.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]]
Sent: September 8, 2006 4:24 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Problems with embedded scripts
> ... then the <script> is added to the DOM, and runs properly. :-)
Not sure if this will help at all, but if you're injecting dynamic
HTML into a page, there's really little reason to keep it in a "pure
XML" form, using: <![CDATA[ ... ]]>. That may help some of IE's
problems.
--John
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
Reach1to1 Communications
http://www.reach1to1.com
[EMAIL PROTECTED]
98201-94408
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
