In the AJAX-loaded files, stick the styles (and any javascript) into BODY, rather than HEAD. IE seems to strip HEAD from any AJAX-loaded content. I came across this "quirk" myself and it drove me nuts!
Chris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Davis Sent: 29 August 2006 20:49 To: jQuery Discussion. Subject: [jQuery] Anomalies using Ajax plugin and IE 6/7 I created a test page to tinker with the Ajax plugin and have noted a strange behaviour in IE 6 and 7. The main test page is: http://www.jimdavis.org/test/jq_ajaxtest.html The page is loading http://www.jimdavis.org/test/ajax-test.html and http://www.jimdavis.org/test/ajax-test2.html using <script type="text/javascript"> $(document).ready(function(){ $("div#left-content").load("ajax-test.html"); $("div#right-content").load("ajax-test2.html"); }); </script> The files that are being loaded inclue an inline style to float the image left and add a little margin and a border. Viewing the main file http://www.jimdavis.org/test/jq_ajaxtest.html in FireFox everything displays as expected. Viewing the same file in IE 6 or 7 incorrectly shows the text below the image. Interestingly, the individual files, ajax-test.html and ajax-test2.html, display correctly in IE. The text wraps around the image as expected. Could jquery be introducing this problem? Jim _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ______________________________________________________________________ This email has been scanned by Senergy Ltd for viruses. Powered by MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by Senergy Ltd for viruses. Powered by MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/