# problem popup

**URL:** <https://discuss.rubyonrails.org/t/problem-popup/36751>\
**Category:** rubyonrails-talk\
**Created:** [November 26, 2008, 10:11am UTC](https://discuss.rubyonrails.org/t/problem-popup/36751 "2008-11-26T10:11:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [November 26, 2008, 10:11am UTC](https://discuss.rubyonrails.org/t/problem-popup/36751/1 "2008-11-26T10:11:55Z")

</div>

hello list.

I use popup in my project

\<td width="10"\>\<%= link\_to image\_tag("edit.png"), edit\_mercado\_path(mercado), :popup =\>['subjects', 'width=500,height=500,toolbar=no,titlebar=no,status=no,left=500,top=300, scrollbars=yes']%\>\</td\>

I want that update method finish this new window (popup) close and refresh the father window

now I use javascript to close window

\<td\>\<%= submit\_tag "Aceptar" :onclick=\>"window.close();" %\>\</td\>

but I want user render :update but this don´t run

I put this

def update &nbsp;&nbsp;............ render :update do |page| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page \<\< opener.$('contenerabajo') &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page \<\< eval(window.close()😉

end end

any idea??? thanks for all
