# Javascript popup and form remote tag

**URL:** <https://www.ruby-forum.com/t/javascript-popup-and-form-remote-tag/127486>\
**Category:** Rails\
**Created:** [January 29, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/javascript-popup-and-form-remote-tag/127486 "2008-01-29T18:54:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neha-rohan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Post date:** [January 29, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/javascript-popup-and-form-remote-tag/127486/1 "2008-01-29T18:54:25Z")

</div>

Hi,

I have a javascript popup window, in that i have a form\_remote\_tag call.  
On the completion of this call, i want some server side code to execute  
and form to be submitted, after that is done i want the pop up window to  
close and after that a DOM element to be updated in the main window.

Can someone help how shld the form\_remote\_tag be invoked to achieve all  
this.

Neha
