How to close a popup and execute an xhr action call to update the "opener" window?

From: allan miller
Sent on: Friday, October 10, 2008 9:54 AM
Hi E.B. Rubyists,

Looking for an approach to solve a problem, and could use some  
suggestions.

I'm opening a "standard" popup window using link_to:

<%= link_to 'Click here to manage documents and photos for this
vehicle', { :action => 'manage_photos_documents_popup' },  :popup =>
[ 'Manage Documents and Photos', 'width=550, height=750,
scrollbars=yes' ] %>

I need to close the popup using either a button or
link (on the popup, of course) and make an ajax call to an action  
updating
a div in the window that opened the popup.  It would be nice to be  
able to pass
data back to the action that updates the div in the calling window.

Any ideas on an approach for this?  THANKS!

allan

--
Allan Miller
[address removed]
http://www.amille...
voice: [masked]



Amazon Web Services

AWS credits at each meeting

Apress

eBook discount coupons at every meeting.

jetBrains / RubyMine

RubyMine licenses at each meeting

Balsamiq Mockups

3 free Balsamiq licenses per year

People in this
Meetup are also in:

Log in

Not registered with us yet?

Sign up

Meetup members, Log in

or
By clicking the "Sign up using Facebook" or "Sign up" buttons above, you agree to Meetup's Terms of Service