Click to See Complete Forum and Search --> : DHTML, IE and WinXP


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.

sciguyryan
08-20-2003, 03:47 PM
hi,


could you provide your code sowe cam see if it's the code or somethind else?

dragle
08-20-2003, 04:24 PM
Hi artmann,

I'm not familiar with this issue specifically as it relates to (or if it relates to) WinXP/IE, but you mentioned a couple key points (the fact that the timeout takes "a couple" minutes--in our tests it was 5--and that the problem involves loading new images) so it sounds like it may be related to this issue from the MSKB:

BUG: Internet Explorer Stops Responding When You Download Images (http://support.microsoft.com/default.aspx?scid=KB;EN-US;269802)

The basic problem here is connection related; IE can hit a wall when downloading multiple images and doesn't seem to always properly clear previously opened connections. One way to tell if this is the case for certain is to increase your available connections (I believe that KB entry describes how) reboot the machine and see if the problem goes away. Obviously that's not viable for your users but it may at least help you know if you're on the right track.

You may also be interested in the "Frequent Image Rollovers Cause Browser to Stop Responding" entry on our HierMenus Known Issues (http://webref.com/dhtml/hiermenus/issues/) page, which has a couple other KB links and further info that may be helpful.

Good luck,