hi, on the window A, there''s a js function called selectSender, which is invoked by the window B. what i need is: 1) a span and a hidden field on A must be set; 2) window B must be closed. i tried in several ways, without success. if the window B closes, the span isn''t filled. if the window B isn''t closed, the span is filled. this is the last way i tried: // this is on window A function selectSender(address_id, win_object) { new Ajax.Updater(''my_span'', ''some_url/address_id''); $(''my_hidden_field'').value = address_id; win_object.close(); } // this is on window B <a href="#" onclick="window.opener[''selectSender''](2, window); return false;"> oh, i''m trying this on Firefox, but i need it to work on every browser. how can i obtain both 1 and 2? thanks giorgian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---