addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1light-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [ruby-81] How to close a popup and execute an xhr action call to update the "opener" window?

From: allan m.
Sent on: Friday, October 10, 2008 12:43 PM
On Oct 10, 2008, at 9:59 AM, William Sobel wrote:

>
> On Oct 10, 2008, at 9:54 AM, allan miller wrote:
>
>> <%= link_to 'Click here to manage documents and photos for this
>> vehicle', { :action => 'manage_photos_docum­ents_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.
>
>
> Does this have to be a popup window or can you use a pure css  
> "popup" like lightbox? With this you will not have the inter-window  
> communication problem therefor the communication is easier. It's  
> fairly easy to do.
>


I actually looked at, and played around a bit with RedBox.  You are  
right, it does have a facility to execute an ajax call on closing.   
But the "popup" the client wants requires all kinds of dynamic user  
interactions and updates, itself.  Converting the current popup to a  
pure css popup wouldn't be good for this.  Still searching for a  
solution ... thanks!




Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy