artmann
08-20-2003, 03:13 PM
Hi Everyone !
I'm having a problem with an application I developed in my company and IE on Windows XP.
On the main page a table with options for the user. Depending on the option, I have some DHTML changes (including background images on TD and IMG tags). Also a page is loaded on certain frame.
The problem is that sometimes IE just hangs and stays there for a couple of minutes. After that, a "DNS error or server not found" is shown instead of the page and all images and backgrounds do not load. It seems that IE and the WEB server cannot communicate. Any ideas ?
NOTE: the application works fine with other S.O.s
Here goes the code:
function changeOption(newOption)
{
if (lastMenuImg != -1)
{
eval("document.all.optButton" + (lastMenuImg+1) + ".style.cssText = 'cursor:hand;background-image: URL(images/fold_mid_dis.gif)'")
eval("document.all.optButton" + (newOption+1) + ".style.cssText = 'cursor:hand; background-image: URL(images/fold_mid_en.gif)'")
if (newOption == 0)
{
try {
document.all.fleft.src = ImageArray[0].src
document.all.fend.src = ImageArray[6].src
document.all.fsep1.src = ImageArray[4].src
document.all.fsep2.src = ImageArray[3].src
}
catch (e){}
}
else if (newOption == 1)
{
document.all.fleft.src = ImageArray[1].src
document.all.fsep1.src = ImageArray[2].src
<%If Session("Administrador") = "S" Then%>
document.all.fend.src = ImageArray[6].src
document.all.fsep2.src = ImageArray[4].src
<%Else%>
document.all.fend.src = ImageArray[5].src
<%End If%>
}
else
{
try {
document.all.fleft.src = ImageArray[1].src
document.all.fend.src = ImageArray[5].src
document.all.fsep1.src = ImageArray[3].src
document.all.fsep2.src = ImageArray[2].src
}
catch (e){}
}
}
parent.bottomFrame.location.href = arrURL[newOption]
lastMenuImg = newOption
}
Thanks.
I'm having a problem with an application I developed in my company and IE on Windows XP.
On the main page a table with options for the user. Depending on the option, I have some DHTML changes (including background images on TD and IMG tags). Also a page is loaded on certain frame.
The problem is that sometimes IE just hangs and stays there for a couple of minutes. After that, a "DNS error or server not found" is shown instead of the page and all images and backgrounds do not load. It seems that IE and the WEB server cannot communicate. Any ideas ?
NOTE: the application works fine with other S.O.s
Here goes the code:
function changeOption(newOption)
{
if (lastMenuImg != -1)
{
eval("document.all.optButton" + (lastMenuImg+1) + ".style.cssText = 'cursor:hand;background-image: URL(images/fold_mid_dis.gif)'")
eval("document.all.optButton" + (newOption+1) + ".style.cssText = 'cursor:hand; background-image: URL(images/fold_mid_en.gif)'")
if (newOption == 0)
{
try {
document.all.fleft.src = ImageArray[0].src
document.all.fend.src = ImageArray[6].src
document.all.fsep1.src = ImageArray[4].src
document.all.fsep2.src = ImageArray[3].src
}
catch (e){}
}
else if (newOption == 1)
{
document.all.fleft.src = ImageArray[1].src
document.all.fsep1.src = ImageArray[2].src
<%If Session("Administrador") = "S" Then%>
document.all.fend.src = ImageArray[6].src
document.all.fsep2.src = ImageArray[4].src
<%Else%>
document.all.fend.src = ImageArray[5].src
<%End If%>
}
else
{
try {
document.all.fleft.src = ImageArray[1].src
document.all.fend.src = ImageArray[5].src
document.all.fsep1.src = ImageArray[3].src
document.all.fsep2.src = ImageArray[2].src
}
catch (e){}
}
}
parent.bottomFrame.location.href = arrURL[newOption]
lastMenuImg = newOption
}
Thanks.