Running a function in the parent window

C

Christopher Finke

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
 
M

Martin Honnen

Christopher said:
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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top