hi friends.... my rhtml page is: <td>Post Blog</span></td> <%= form_remote_tag(:update => "my_list", :url => { :action => :preview_blog }, :position => "top" ) %> <td><textarea class="textareapost" name="blog"></textarea></td> <td> <%= link_to_remote(image_tag("../images/post_blog.gif", :border => 0), :update => "save",:url =>{ :action => :save })%> </td> <td> <input type="image" alt="Post Blog" src="../images/create.gif" border="0"></td> <div id="my_list" class="empty"> </div> form_remote_tag is working fine. but link_to_remote not working!!!!! please help me... Thanks.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 25 Nov 2008, at 12:32, Smarty 2k wrote:> > hi friends.... > > my rhtml page is: > > > > <td>Post Blog</span></td> > <%= form_remote_tag(:update => "my_list", > :url => { :action => :preview_blog }, > :position => "top" ) %> > <td><textarea class="textareapost" name="blog"></textarea></td> > <td> > <%= link_to_remote(image_tag("../images/post_blog.gif", :border => 0), > :update => "save",:url =>{ :action => :save })%> > </td> > <td> > <input type="image" alt="Post Blog" src="../images/create.gif" > border="0"></td> > > > <div id="my_list" class="empty"> > > </div> > > 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/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---