Forum: Ruby on Rails How to close a popup and execute an xhr call to update the "opener" window?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
athem (Guest)
on 2008-10-10 08:31
(Received via mailing list)

I'm opening a popup window using:

<%= 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 and make an ajax call to an action updating
a div in the window that opened the popup using either a button or
link (on the popup, of course).  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!
Youssef Chaker (Guest)
on 2008-10-11 03:42
(Received via mailing list)
This topic is locked and can not be replied to.