P
Peter Laman
I have a problem with the following script code:
function updateschedule(mth)
{
xmlHttp = CreateXmlHttp()
try
{
xmlHttp.open("GET", "schedule/maandroostertbl.php?mth="+mth,
false)
xmlHttp.send(null)
if(xmlHttp.readyState==4)
{
div = document.getElementById("schedule")
div.innerHTML = xmlHttp.responseText
}
}
catch(err)
{
alert('Het maandrooster kon niet worden opgehaald.')
}
}
CreateXmlHttp is a general, browser independent function I always use
to create the object. The mth parameter stands for a month number for
which to generate code. The returned text is expected to be HTML. I
tested this with the 'usbwebserver' local server and it works. But
after uploading the code to the 'real' website it does not give any
response and no exception either. When I request the referred resource
manually, it does give the expected response. Specifying a full URL
(http://...) in the xmlHttp.open call does not help.
What I don't understand is, that the functioning of this code depends
on the SERVER where it resides, because the client is the same.
However, the problem is not with the requested resource itself, since
I can access it manually.
Any ideas?
function updateschedule(mth)
{
xmlHttp = CreateXmlHttp()
try
{
xmlHttp.open("GET", "schedule/maandroostertbl.php?mth="+mth,
false)
xmlHttp.send(null)
if(xmlHttp.readyState==4)
{
div = document.getElementById("schedule")
div.innerHTML = xmlHttp.responseText
}
}
catch(err)
{
alert('Het maandrooster kon niet worden opgehaald.')
}
}
CreateXmlHttp is a general, browser independent function I always use
to create the object. The mth parameter stands for a month number for
which to generate code. The returned text is expected to be HTML. I
tested this with the 'usbwebserver' local server and it works. But
after uploading the code to the 'real' website it does not give any
response and no exception either. When I request the referred resource
manually, it does give the expected response. Specifying a full URL
(http://...) in the xmlHttp.open call does not help.
What I don't understand is, that the functioning of this code depends
on the SERVER where it resides, because the client is the same.
However, the problem is not with the requested resource itself, since
I can access it manually.
Any ideas?