Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.open returns null in Microsoft Script Debugger

Status
Not open for further replies.

mastoj

Programmer
Jun 17, 2008
2
SE
Hi,

I have a problem that is causing IE 6 to hang. I'm not sure this is the cause of it, but I can't debug the real problem if I can't solve this one.

The problem is that when I debug the javascript in Microsoft Script Debugger or Visual Studio window.open will not open a new window and will therefor return null.

This is what I try to do:
var w = window.open('', 'printWin', 'width=1000, height=800, scrollbars=yes');
wdoc = w.document;

But when while debugging the w variable will be null.

Any suggestions?
Regards,
--Tomas
 
Tomas,

I seem to remember having a similar problem about 3-4 years ago with IE6 and the free script debugger as well as Visual Interdev. I posted here at the time, but unfortunately I cannot find the post, but I'll keep looking for it.

I seem to remember having to perform some strange ritual such as re-launching IE6 a second time before it would let me (or perhaps it was re-launching the debugger)... as I said, it was a long time ago.

At least you know now it's not just you that's had this issue ;-)

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Dan,

Thanks for you response. Glad I'm not alone :). I really think this is annoying, because it works fine when debugging in firebug and firefox.

Please answer to this if you find the answer again, I have been looking everywhere for a solution.

--Tomas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top