Running a function in the parent window

Discussion in 'Javascript' started by Christopher Finke, Oct 24, 2004.

  1. I am writing a Firefox extension. I have a XUL window that opens when a
    menu option is chosen. The user fills in a form in the popup window, and
    then when the user clicks OK, I would like an http request to be made to a
    server and for the popup to close. The problem I am having is that when the
    window closes, the http request is stopped as well.

    How can I run the function that makes the http request from the main browser
    window (or how can I stop the http request function from stopping when the
    popup window is closed)?

    Thanks,

    Chris Finke
    Christopher Finke, Oct 24, 2004
    #1
    1. Advertising

  2. Christopher Finke wrote:

    > I am writing a Firefox extension. I have a XUL window that opens when a
    > menu option is chosen. The user fills in a form in the popup window, and
    > then when the user clicks OK, I would like an http request to be made to a
    > server and for the popup to close. The problem I am having is that when the
    > window closes, the http request is stopped as well.
    >
    > How can I run the function that makes the http request from the main browser
    > window (or how can I stop the http request function from stopping when the
    > popup window is closed)?


    Why can't you wait to close the popup once the response to the HTTP
    request is there?

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
    Martin Honnen, Oct 25, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Raj
    Replies:
    3
    Views:
    12,928
    gautamkhosla29
    Jun 11, 2009
  2. KenG

    window.open clears parent window

    KenG, Feb 4, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    7,246
    Mike Hennessy
    Feb 17, 2004
  3. Bhishm
    Replies:
    2
    Views:
    795
    bruce barker
    Sep 3, 2007
  4. PWalker
    Replies:
    1
    Views:
    133
    David Lionetti
    Feb 24, 2005
  5. Bhishm
    Replies:
    2
    Views:
    214
    Thomas 'PointedEars' Lahn
    Sep 4, 2007
Loading...

Share This Page