I ran into the same issue, and it can be solved by putting your javascript inside the body tags. Then it works. Hurray for IE
Regards Ronald -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thinker Sent: donderdag 8 februari 2007 5:20 To: jQuery Discussion. Subject: Re: [jQuery] $().load() can not load script in a page with IE John Resig wrote: > Hi - > > Can you provide an example of what's failing? We'll need some sample > code in order to debug what's going on. > > --John test.html will load test2.html and supposed to run alert("Hello!!!"). But, it is not actually (in IE). test.html {{{ <html> <script src="http://jquery.com/src/jquery-latest.js"> </script> <script> $(document).ready(function() { $("#load_here").load("test2.html"); }); </script> <body> <div id="load_here"> </div> </body> </html> }}} test2.html {{{ <script> alert("Hello!!!"); </script> <h1> Hello</h1> }}} -- Thinker Li - [EMAIL PROTECTED] [EMAIL PROTECTED] http://heaven.branda.to/~thinker/GinGin_CGI.py _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/ _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
