# Open popup to close, update div in parent window?

**URL:** <https://www.ruby-forum.com/t/open-popup-to-close-update-div-in-parent-window/133309>\
**Category:** Rails\
**Created:** [March 29, 2008, 10:45pm UTC](https://www.ruby-forum.com/t/open-popup-to-close-update-div-in-parent-window/133309 "2008-03-29T22:45:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbqbaker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ecccb3/32.png) [@bbqbaker](https://www.ruby-forum.com/u/bbqbaker)\
**Post date:** [March 29, 2008, 10:45pm UTC](https://www.ruby-forum.com/t/open-popup-to-close-update-div-in-parent-window/133309/1 "2008-03-29T22:45:04Z")

</div>

i have a form where a user can open a popup to add categories. when the  
window is closed, id like the dropdown list in the form to get refreshed  
via rjs.

however, i am having trouble updating the drop down since i cant seem to  
access the div id in the parent window from the popup. anyone know how?

THANKS FOR ANY HELP!

---

<div class="post-metadata">

**Author:** ![bbqbaker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ecccb3/32.png) [@bbqbaker](https://www.ruby-forum.com/u/bbqbaker)\
**Post date:** [March 31, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/open-popup-to-close-update-div-in-parent-window/133309/2 "2008-03-31T15:32:46Z")

</div>

If you’re planning on using RJS already, why not have the ‘close’  
method send the categories to the server, and then the server can  
build up the and send them down to the browser?

On Mar 29, 5:45 pm, Koloa N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
