# Ajax problem

**URL:** <https://www.ruby-forum.com/t/ajax-problem/154105>\
**Category:** Rails\
**Created:** [November 25, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/ajax-problem/154105 "2008-11-25T13:32:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smartee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e5b9ba/32.png) [@smartee](https://www.ruby-forum.com/u/smartee)\
**Post date:** [November 25, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/ajax-problem/154105/1 "2008-11-25T13:32:01Z")

</div>

hi friends…

my rhtml page is:

Post Blog \<%= form\_remote\_tag(:update =\> "my\_list", :url =\> { :action =\> :preview\_blog }, :position =\> "top" ) %\> \<%= link\_to\_remote(image\_tag("../images/post\_blog.gif", :border =\> 0), :update =\> "save",:url =\>{ :action =\> :save })%\> 

form\_remote\_tag is working fine. but link\_to\_remote not working!!!

please help me…

Thanks…

---

<div class="post-metadata">

**Author:** ![smartee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e5b9ba/32.png) [@smartee](https://www.ruby-forum.com/u/smartee)\
**Post date:** [November 25, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/ajax-problem/154105/2 "2008-11-25T13:45:15Z")

</div>

On 25 Nov 2008, at 12:32, Smarty 2k wrote:

> ```
> :position => "top" ) %>
> 
> ```
> 
> form\_remote\_tag is working fine. but link\_to\_remote not working!!!

“not working”, in the absence of clarifications as to what that means,  
is the most useless thing you can write in a message to a mailing list.

In this particular case it could mean:

- no ajax call is made
- an ajax call is made but with the wrong parameters
- a seemingly correct call is made but it isn’t routed properly
- my controller raises some error (if so what error)
- the side effects I wanted (record changed in the database etc…)  
don’t appear to have happened
- the rjs in my controller/view hasn’t done the right thing
- after the ajax call completes the page doesn’t update the way I want/  
at all.

Fred

---

<div class="post-metadata">

**Author:** ![smartee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e5b9ba/32.png) [@smartee](https://www.ruby-forum.com/u/smartee)\
**Post date:** [November 25, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/ajax-problem/154105/3 "2008-11-25T13:47:36Z")

</div>

not working would mean:

- It’s not calling the controller action
- Is calling the controller action, but not responding
- Responding but not updating html-tag with id “save” (which exists,  
of course)
- do something totally weird like ordering a pizza?
