When does Window.open() call return control to caller? - Javascript

This is a discussion on When does Window.open() call return control to caller? - Javascript ; All, I have a tricky set of AJAX functionality that involves a popup window and in order to keep the synchronization issues straight, I need to be sure that I understand something about the Window.open() call. If I have code ...

+ Reply to Thread
Results 1 to 2 of 2

When does Window.open() call return control to caller?

  1. Default When does Window.open() call return control to caller?

    All,

    I have a tricky set of AJAX functionality that involves a popup window
    and in order to keep the synchronization issues straight, I need to be
    sure that I understand something about the Window.open() call.

    If I have code that calls "window.open(url, name, features...)", does
    the calling code:

    a) block until the document (specified by url in the call) is fully
    loaded in that new window

    OR

    b) immediately continue processing once the window is initially
    displayed on the desktop?

    Another way to put this is: "Is a call to window.open() asynchronous
    with respect to the retrieval of the target url for that window?"

    Thanks,
    Wes Gamble


  2. Default Re: When does Window.open() call return control to caller?


    Yes it is asynchronous. The execution of your calling code won't wait
    until the document in the remote window is "loaded" (for some
    definition of "loaded"). The separate window is essentially a separate
    thread.


    On May 31, 11:56 pm, Weyus <w...@att.net> wrote:
    > All,
    >
    > I have a tricky set of AJAX functionality that involves a popup window
    > and in order to keep the synchronization issues straight, I need to be
    > sure that I understand something about the Window.open() call.
    >
    > If I have code that calls "window.open(url, name, features...)", does
    > the calling code:
    >
    > a) block until the document (specified by url in the call) is fully
    > loaded in that new window
    >
    > OR
    >
    > b) immediately continue processing once the window is initially
    > displayed on the desktop?
    >
    > Another way to put this is: "Is a call to window.open() asynchronous
    > with respect to the retrieval of the target url for that window?"
    >
    > Thanks,
    > Wes Gamble




+ Reply to Thread

Similar Threads

  1. return value of successful open call
    By Application Development in forum C
    Replies: 7
    Last Post: 11-05-2007, 11:09 PM
  2. Re: Return name of caller function?
    By Application Development in forum Python
    Replies: 0
    Last Post: 06-27-2007, 03:45 PM
  3. Re: Return name of caller function?
    By Application Development in forum Python
    Replies: 0
    Last Post: 06-27-2007, 03:36 PM
  4. Re: Return name of caller function?
    By Application Development in forum Python
    Replies: 0
    Last Post: 06-27-2007, 03:25 PM
  5. Re: Return name of caller function?
    By Application Development in forum Python
    Replies: 0
    Last Post: 06-26-2007, 12:23 PM