So I was trying out things and wondered after I tested it also with IE.
The following example I found with google works on my Firefox 1.0.4.but not with IE6:
http://www.phpit.net/demo/php%20on%20the%20fly/client1.php
In IE it does show the right date at the beginning, but after clicking on update, it loads the wrong time...
Doesn't it work for you also ?
It is strange ...
This is the first example of http://www.webpronews.com/webdevelopment/b...HPOnTheFly.html
If no, does somone have an idea ? Because it should work... the browser detection script is the same as explained here: http://jibbering.com/2002/4/httprequest.html
QUOTE
var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
