Help - Search - Members - Calendar
Full Version: ajax question
Invision Power Services > Community Forums > Community Web Design and Coding
nicoo
I am just beginning and trying to learn some ajax.
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();
}
-Strider-
In ie, it loads the correct time on the load and update, but clicking on update again does nothing
nicoo
Thanks for trying it Strider !

- clicking a second time give me the wrong time
- clicking a third time, does also give me nothing !!!

Does someone has an explication to this ?
I thought ajax would be cross compatible between FF, IE at least
Antony
QUOTE(Nicoo @ May 15 2005, 07:50 PM) *
Thanks for trying it Strider !

- clicking a second time give me the wrong time
- clicking a third time, does also give me nothing !!!

Does someone has an explication to this ?
I thought ajax would be cross compatible between FF, IE at least


Fat chance.
nicoo
QUOTE(Swords @ May 16 2005, 01:12 PM) *
Fat chance.


What does that mean ?
elj
He's saying it isn't.

I know nothing more about Ajax, so I can't help you - 'fat chance' is a way of saying 'not really'. wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.