snached
Programmer
- Mar 5, 2006
- 1
Hello.
I have a problem which I dont have a clue to what the cause if it could be.
If I go to my page on localhost it seems to work perfectly. When one of my friends go on my page through my webserver it works the first time they load it. But if they hit refresh then ajax does not load any components from the server. This problem only occurs on IE and not firefox.
Does anyone know what might be causing this problem? I use one XMLHttpRequest object and only ever make one ajax call at a time.
What is the difference between loading a page or refreshing it? Is there any important difference I should know of?
Here is a code snippet:
Thanks, Thomas Hoggard
I have a problem which I dont have a clue to what the cause if it could be.
If I go to my page on localhost it seems to work perfectly. When one of my friends go on my page through my webserver it works the first time they load it. But if they hit refresh then ajax does not load any components from the server. This problem only occurs on IE and not firefox.
Does anyone know what might be causing this problem? I use one XMLHttpRequest object and only ever make one ajax call at a time.
What is the difference between loading a page or refreshing it? Is there any important difference I should know of?
Here is a code snippet:
Code:
function loadHeader()
{
xmlhttp=initXMLHttpRequest();
xmlhttp.onreadystatechange=loadHeader_callback;
xmlhttp.open("GET", url + "?request=loadHeader", true)
xmlhttp.send(null)
}
function loadHeader_callback()
{
if (xmlhttp.readyState==4)
{
document.getElementById('divHeader').innerHTML = xmlhttp.responseText;
}
}
Thanks, Thomas Hoggard