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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
988e49987971369d4903c02b3269c8b2?d=identicon&s=25 athem (Guest)
on 2008-10-10 06:31
(Received via mailing list)
Hi,

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!
613c0cc9552a2c880a902bb109c885b0?d=identicon&s=25 Youssef Chaker (Guest)
on 2008-10-11 01:42
(Received via mailing list)
This topic is locked and can not be replied to.