IE7 + Vista - Window.Open issue

G

Ganesh

This is an issue related to IE 7 on Vista OS. Whenever user clicks a link
that opens a new window using window.open, parent window throws JavaScript
exception with message "window object is null or undefined. Do you want to
continue?" But this works fine on IE 6 (or IE 7) in other OS like Windows
XP.



In Vista, if we disable the "Protected Mode" option in IE settings, then
this error is not occurring. So it means window is not allowing opening the
new window in protected mode.



One link where a discussion resembles this sort of issue is:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=867012&SiteID=1. From
the discussion thread, it looks like that we cannot manipulate the instance
of the window created through window.open(url,name,.) method. On this basis,
just for a trial, we've commented all the code that manipulates window (as
below)





window.open(navigatorUrl, "Nav1",
"width=1024,height=768,menubar=no,statusbar=no,toolbar=no,navigationbar=no,resizable=yes");

// navigatorWindow = document.open(navigatorUrl, "Navigator",
"width=1024,height=768,menubar=no,statusbar=no,toolbar=no,resizable=yes");

// navigatorWindow.opener = window;

// navigatorWindow.focus();



At first instance it seemed to work. But, later we noticed that, it was
creating different tabs of the same page in single window if user clicks the
same link multiple times.



So to summarize our requirement is as follows-



1) To get rid of JavaScript error that is occurring on Vista/IE7 on
Window.Open.

2) It should open single instance with single tab of the window on clicking
same link multiple times.
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top