View Full Version : Rotating Includes breaks on IE7...?

02-05-2007, 03:00 AM
1) Script Title: Ajax Rotating Includes Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxrotate.htm

3) Describe problem: I recently updated to IE7 and the page I'd been building suddenly stopped working. This and the Dynamic Ajax content script (http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm) both stopped working, and I can't figure what happened. Both work in FF and Opera, and they had worked in IE6. Attached is zip of the .htm file with the script in the header.


02-05-2007, 04:09 AM
I'm assuming the script works fine for you when you view it on the dynamicdrive pages, correct?

02-05-2007, 06:02 AM
Due to IE 7 now implementing the standard XMLHttpRequest() method in addition to its proprietary ActiveXObject("Msxml2.XMLHTTP") object and the fact that IE 7 sees the former as a security issue if implemented locally, scripts written using the XMLHttpRequest() method will now break locally in IE 7 unless care is taken to force it to use the ActiveXObject("Msxml2.XMLHTTP") object instead for local implementations. However, none of this will affect live implementations so, the easiest thing to do is to is to test in FF until you go live.

02-05-2007, 01:27 PM
Wacky. Thanks, that did it! I've uploaded it to my server, and lo, it all does what it's supposed to do. I'll continue as you suggested and just test on FF locally until it's finished... :)