window.open and <a> with named target always opens new window  
Author Message
marelis





PostPosted: Internet Explorer Web Development, window.open and <a> with named target always opens new window Top

Hi there,

We are having some problems with reloading named windows. We use in our applications two kind of methods:

  • java scripting: window.open("../Company/SelectDerde.aspx","SEARCHCOMP", "height=600, width=750px, menubar=0, location=0, resizable=0, status=0);
  • html: <a href="../Company/SelectDerde.aspx" target="SEARCHCOMP">Search Company</a>

Before IE7 the webbrowser reloaded the window (if already loaded) with the name 'SEARCHCOMP' with the new page. With IE7 it always opens a new tab or window (depending on the IE7 Settings)

Does anyone know of named targets are no longer supported with IE7

Thanks in advance

Patrick Marelis



Internet Explorer Development6  
 
 
Rock54





PostPosted: Internet Explorer Web Development, window.open and <a> with named target always opens new window Top

Hello,

Using JavaScript you can force the browser to open the page in the same window.

<script> window.navigate("../Company/SelectDerde.aspx"); </script>


 
 
marelis





PostPosted: Internet Explorer Web Development, window.open and <a> with named target always opens new window Top

Hello, Thats true, this scripts reloads the IE that contains this script.

My problem is I have an search window to find information. When one of the items (that is found) is clicked then it opens an new window (targed=OpenItem). When the user (in the search window) clicks on another item it should show that in the just newly opened window. So not the window where the user clicks.

Thanx in advange


 
 
Gulopine





PostPosted: Internet Explorer Web Development, window.open and <a> with named target always opens new window Top

I too experienced this problem when testing IE7 with our web application. After going into the new Tab Settings (under Internet Options), I selected the option for "Let Internet Explorer decide how pop-ups should open" in hopes that it would revert to its previous behavior. After selecting this, the application worked fine, and reused the same window as it should have. However, I was then able to select any of the three available "pop-up" options, and all of them worked fine, even the one that was originally selected when I was having problems.

I'm not sure what the root cause of the problem is, but it seems like confirming the tab options resets something in IE that allows it to use named target windows properly. Perhaps the default setting that ships with IE isn't exactly equivalent to any of those options, I'm not sure. If you've learned anything else that fix this problem, please let me know. I'd rather not try to walk all our users through confirming their tab settings just because Microsoft messed something up with their defaults.