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


#1

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!


#2

check out this link: http://www.methods.co.nz/popup/popup.html