Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Running a function in the parent window

Reply
Thread Tools

Running a function in the parent window

 
 
Christopher Finke
Guest
Posts: n/a
 
      10-24-2004
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


 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      10-25-2004


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/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If a class Child inherits from Parent, how to implementChild.some_method if Parent.some_method() returns Parent instance ? metal Python 8 10-30-2009 10:31 AM
Refresh Parent window from child window causes problems Raj ASP .Net 3 06-11-2009 05:58 AM
Calling function in a child window from main parent window Bhishm Javascript 2 09-03-2007 11:08 PM
Calling function in a child window from main parent window Bhishm ASP .Net 2 09-03-2007 07:22 PM
clicking on a thumbnail in a parent window causes parent to reload PWalker Javascript 1 02-24-2005 12:56 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57