|
Posted by Rik on 07/13/06 11:30
Robert S wrote:
> Actually . . .
>
> It doesn't seem to work in IE6 - the page doesn't refresh. Is this
> something to do with my IE settings?
XMLHTTPRequest doesn't work in MSIE, you'll have to use an ActiveX object.
if (window.ActiveXObject && !window.XMLHttpRequest) {
window.XMLHttpRequest = function() {
var msxmls = new Array(
'Msxml2.XMLHTTP.5.0',
'Msxml2.XMLHTTP.4.0',
'Msxml2.XMLHTTP.3.0',
'Msxml2.XMLHTTP',
'Microsoft.XMLHTTP');
for (var i = 0; i < msxmls.length; i++) {
try {
return new ActiveXObject(msxmls[i]);
} catch (e) {
}
}
return false;
};
}
This has nothing to do with PHP anymore, further questions are more
apropriate in comp.lang.javascript.
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|