• window.open anomaly

    Author
    Topic
    #392787

    We’ve got some script to open a context sensitive HTML Help window (server based help) from a web-application. The script is pretty basic – set the url, open the window using:

    function ccmHelp() {
      // do some stuff to get url
      hw = window.open(url, "helpWin");
      return;
    }
    

    The function is accessed using a link with href=”java script: ccmHelp()” and works fine to launch the help window. But on subsequent calls from the same or different pages in our application, we see one of two things depending on the client’s machine: 1) the intended effect where the window named helpWin is reused; or 2) a new window on each call to our help function.

    I’m guessing it’s an OS setting or something to do with the component windows uses to handle URLs (urlmon.dll?). Seems to happen whether it’s IE or Netscape, but always consistent on the same machine. Just different across machines. Doesn’t seem to be based on the IE Advanced Setting “Reuse windows for launching shortcuts” (which wouldn’t make sense for Netscape).

    Any ideas?

    Viewing 1 reply thread
    Author
    Replies
    • #707441

      As a test, can you add a link like this to one of your pages:

      url[/i]“]test

      and see if the browser remains aware of helpWin? I’m wondering whether by security mechanism or as a result of a different “instance” of IE or whatever, the collection of window names (if that’s what they are, don’t hold me to it) is either invisible or getting flushed. The behavior of the JavaScript window.open and the anchor tag with named target should be the same. If they’re not then that raises other interesting issues.

    • #707442

      As a test, can you add a link like this to one of your pages:

      url[/i]“]test

      and see if the browser remains aware of helpWin? I’m wondering whether by security mechanism or as a result of a different “instance” of IE or whatever, the collection of window names (if that’s what they are, don’t hold me to it) is either invisible or getting flushed. The behavior of the JavaScript window.open and the anchor tag with named target should be the same. If they’re not then that raises other interesting issues.

    Viewing 1 reply thread
    Reply To: window.open anomaly

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: