Running a function in the parent window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christopher Finke

    Running a function in the parent window

    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


  • Martin Honnen

    #2
    Re: Running a function in the parent window



    Christopher Finke wrote:
    [color=blue]
    > 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)?[/color]

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

    --

    Martin Honnen

    Comment

    Working...