----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: NETGuy2002 Message 1 in Discussion Hi all, We are having an issue with using Window.Open - javascript in VISTA Operating system. Problem:<o:p></o:p> This is the issue related to IE 7 on Vista operating system. When ever user clicks a link that opens a new window, 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 and window.<o:p></o:p> But if we disable protected mode then this error would not occur. So it means window is not allowing opening the new window in protected mode. I searched through the net but find out the following link to help full to some extent.<o:p></o:p> <o:p> </o:p> http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=867012&SiteID=1<o:p></o:p> <o:p> </o:p> Few of the solution was from the given URL was to TURN OFF the protected mode, but this seems not to be acceptable solution. <o:p></o:p> <o:p> </o:p> >From the discussion board i concluded that we can not manipulate the instance >of the window created through window.open (url, name, ) method. As protected >mode throws error, so to avoid the error i commented all the code and instead >i just put up window.open (URL, name, ). <o:p></o:p> <o:p> </o:p> <o:p> </o:p> window.open(navigatorUrl, "Navigator", "width=1024,height=768,menubar=no,statusbar=no,toolbar=no,navigationbar=no,resizable=yes");<o:p></o:p> // navigatorWindow = document.open(navigatorUrl, "Navigator", "width=1024,height=768,menubar=no,statusbar=no,toolbar=no,resizable=yes");<o:p></o:p> // navigatorWindow.opener = window;<o:p></o:p> // navigatorWindow.focus();<o:p></o:p> <o:p> </o:p> At First instance it seems to work. But later i found that it was creating different instance (in the form of multiple tab) of the same page in single window if user clicks the same link multiple time, which is also deviation from our requirement.<o:p></o:p> <o:p> </o:p> So to summarize our requirement is as follows-<o:p></o:p> <o:p> </o:p> 1) To get rid of JavaScript error that is occurring on Vista/IE7<o:p></o:p> 2) It should open single instance of the window for the same link on multiple click of the link.<o:p></o:p> <o:p></o:p> <o:p>Can any body help on this?</o:p> <o:p></o:p> <o:p>Regards</o:p> <o:p>Shyam</o:p> ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
