IE6 new JavaScript Window open causes occasional freeze

S

Steaming Divot

Hi All

I am totally stuck on this one.

I have created quite a complicated DHTML page, incorporating 3 .js
files. This can be found at
www.solentsci.com/uk/nikon/nikon_te2000.htm. Please try to stay awake
when looking at the page, its quite dull... Anyway, users fill out a
form, and a new popup window is created detailing the choices to send
a quote to the company.

The problem is that occasionally the opened page freezes, IExplore.exe
shoots up to 100% CPUs, and both the parent and opened page crash. It
happened very occationally in the past, but in the last week it
started happening about every 10 refreshes, even on pages I havent
modified for the last year and were previously working fine. I thought
it was just my machine, but the client has just got back to me saying
he has had loads of people contacting him with the same thing over the
last week. There appears to be no logic to it, but most people seem to
be on Win 2000, IE6.

When I thought it was just my machine, I went through all the
possibilities I could find, including checking for spyware, popup
blockers, reregistering urlmon.dll and other recommendations from the
microsoft knowledgebase article
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q281679.

And its still *%£$ing doing it.

The page opens a new window with no target url - could this have
something to do with it:

win=window.open("","quote","location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,width=600,height=400");
win.document.open();
win.document.writeln("<html><head><title>Hi</title></head>");
win.document.writeln("<body>Some text</body></html>");
win.document.close();
win.focus();

Also, there are actually about another 60 win.document.writeln 's in
my page, could there be a limit to how much can be written to the new
window?

My final idea, and Im really clutching at the slenderest of straws
here, is that the patch for the MSBlast virus has affected IE6??

Anyone any other ideas, before I injure myself?

Cheers

Steaming Divot
 
S

Steaming Divot

For your information, I got it to work by splitting the
win.document.writeln's into one long variable, then wrote that to the
new window, like so:

strHTML="<HTML><HEAD></HEAD><BODY>"
strHTML+="Some Text"
strHTML+="Some More Text"
strHTML+="</BODY></HTML>"

win.document.open();
win.document.write(strHTML);
win.document.close();

And it seems to work fine :)

The Divot.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top