[Rails] ajax problem when switching from prototype to jquery

2011-09-25 Thread David Carlton
I have an old Rails application that I'd previously upgraded to Rails 3.1 with a lot of legacy features left on; now I want to switch to using jQuery instead of Prototype, and switch to using the asset pipeline. I'm trying to tackle the first of those; no idea if that's wise, maybe I should start

[Rails] ajax problem

2010-10-08 Thread anh1
Hi, I am trying to use ajax to update a page by using the link_to command. When I click the link_to commad my ajax request is not being process. The view is a list of message. Once I click on a message link_to command, I want it to update the message . When I click on the link_to command, I get t

Re: [Rails] ajax problem

2010-07-20 Thread Mathew Augustine
what i meant is on clicking the link below in short <%=link_to_remote image_tag("/images/ cricinfoLogo.gif"),{:update > => "changing_layout",:url => { :controller => 'home',:action => > 'change_layout',:value => 'registration'},:method => > :get},:id=>'registr' %> it should replace the div

Re: [Rails] ajax problem

2010-07-20 Thread Colin Law
On 20 July 2010 09:44, Tony Augustine wrote: > Hi  i created         an  application  which using  ajax method,   but > unfortunately  ma application is not   working this is  ma  view page in > which i  used ajax. here on clickint the links it  should replace the > div "changing_layout" > on the

[Rails] ajax problem

2010-07-20 Thread Tony Augustine
Hi i created an application which using ajax method, but unfortunately ma application is not working this is ma view page in which i used ajax. here on clickint the links it should replace the div "changing_layout" on the basis of values passed to the controller but for me i

[Rails] AJAX Problem

2010-02-19 Thread manish belsare
"try { Element.hide("add_answer_link_for_post_-613772418"); Element.update("new_answer_form_for_post_-613772418", "\n\n New Answer\n \n \n\n\n\n"); } catch (e) { alert('RJS error:\n\n' + e.toString()); alert('Element.hide(\"add_answer_link_for_post_-613772418\"); \nElement.update(\"new_answer_for

[Rails] Ajax problem

2008-11-25 Thread Smarty 2k
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",:u