# Link\_to\_remote headaches

**URL:** <https://www.ruby-forum.com/t/link-to-remote-headaches/136496>\
**Category:** Rails\
**Created:** [May 2, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/link-to-remote-headaches/136496 "2008-05-02T18:59:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![newrubygirl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e274bd/32.png) [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Post date:** [May 2, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/link-to-remote-headaches/136496/1 "2008-05-02T18:59:53Z")

</div>

I’ve been searching the forums and the api for a specific way to update  
a parent window from a pop-up and am going in circles now.

In my view I have  
\<%= link\_to\_remote “Update Parent”, :url =\> {:action =\> ‘update\_parent’,  
:items\_selected =\> @item\_codes, :id =\> (params[:id])}, :update =\>  
‘item\_codes’ %\>

I am a bit lost as to what I need to include in my controller to update  
a textbox in my parent form and close the child window?

THANKS!!!

---

<div class="post-metadata">

**Author:** ![newrubygirl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e274bd/32.png) [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Post date:** [May 3, 2008, 7:11am UTC](https://www.ruby-forum.com/t/link-to-remote-headaches/136496/2 "2008-05-03T07:11:01Z")

</div>

google for ‘running javascript in the opener window’  
-R

On Fri, May 2, 2008 at 10:59 AM, Becca G.

---

<div class="post-metadata">

**Author:** ![newrubygirl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e274bd/32.png) [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Post date:** [May 26, 2008, 11:49am UTC](https://www.ruby-forum.com/t/link-to-remote-headaches/136496/3 "2008-05-26T11:49:14Z")

</div>

Hi Becca G.,

```
       Did u get the solution for the above problem? Even i am

```

facing the same problem help me out !!!

THANKS…
