Re: Ajax problem

Frederick Cheung
2008-11-25T12:44:17Z

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

>
> hi friends....
>
> my rhtml page is:
>
>
>
> Post Blog
> <%= form_remote_tag(:update => "my_list",
>                       :url => { :action => :preview_blog },
>                       :position => "top" ) %>
> <textarea class="textareapost"
name="blog">
>
> <%= link_to_remote(image_tag("../images/post_blog.gif",
:border => 0),
>       :update => "save",:url =>{ :action => :save
})%>
>
>
> <input type="image" alt="Post Blog"
src="../images/create.gif"
> border="0">
>
>
>
>
>
>
> 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
> please help me...
>
> Thanks..
> --
> Posted via http://www.ruby-forum.com/.
>
> >