hey all, I open a popup from a firefox extension with window.open(myurl). The content of the popup is a regular form with a text_field to fill. Is there a way to automatically close the popup after the user click the form''s submit button? thanx in advance Pat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
window.close(); ? I personally use a button type input and add an onclick handler to do stuff. If the form looks good I then do a document.forms[0].submit() and then window.close(). Hope this helps! Shawn Patrick Aljord wrote:> hey all, > I open a popup from a firefox extension with window.open(myurl). > The content of the popup is a regular form with a text_field to fill. > Is there a way to automatically close the popup after the user click > the form''s submit button? > > thanx in advance > > Pat-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---