You are here: Re: How do I get a small part of my page to repeatedly refresh? « All PHP « IT news, forums, messages
Re: How do I get a small part of my page to repeatedly refresh?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация