# Popup

**URL:** <https://www.ruby-forum.com/t/popup/84513>\
**Category:** Rails\
**Created:** [February 5, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/popup/84513 "2007-02-05T15:56:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9dc877/32.png) [@Chika](https://www.ruby-forum.com/u/Chika)\
**Post date:** [February 5, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/popup/84513/1 "2007-02-05T15:56:24Z")

</div>

Hi everyona, I need you all…  
I`m having some trouble with popup. I have a form that has a link that opens a popup so that the user can make a search, then the result should be loaded in the form; to do so I need to pass some variables in the popup link, but if I do so, the popup doesn`t work.

So what I have is this:  
\<%= link\_to ‘Buscar Relacionadora’, ‘…/…/secretarias/search’,  
:popup =\> [‘Buscar Secretaria’,  
‘width=1000,height=600,toolbar=no,titlebar=no,status=no,left=500,top=300’]  
%\>

and what I need is something closer to this:  
\<%= link\_to ‘Buscar Relacionadora’, :contoller=\> ‘secretarias’,  
:action=\> ‘search’,:trabajador\_id =\> @t.id,  
:popup =\> [‘Buscar Secretaria’,  
‘width=1000,height=600,toolbar=no,titlebar=no,status=no,left=500,top=300’]  
%\>

Any posible solution?  
I wish I don’t need javascript…  
thanks!

---

<div class="post-metadata">

**Author:** ![Chika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9dc877/32.png) [@Chika](https://www.ruby-forum.com/u/Chika)\
**Post date:** [February 6, 2007, 11:16am UTC](https://www.ruby-forum.com/t/popup/84513/2 "2007-02-06T11:16:53Z")

</div>

Try posting your question on [refwell.com](http://refwell.com). You might get your answer  
there  
James

---

<div class="post-metadata">

**Author:** ![Chika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9dc877/32.png) [@Chika](https://www.ruby-forum.com/u/Chika)\
**Post date:** [February 1, 2008, 5:38pm UTC](https://www.ruby-forum.com/t/popup/84513/3 "2008-02-01T17:38:38Z")

</div>

I feel javascript will be the way to do it…  
i also have a similar problem and i have used a javascript popup, after  
that form is submitted i need to update a DOM element in my main  
window…but have been unable to do so…

did u find any answers to ur problem. If yes, please share them with me.

Thanks in advance.
