Questions tagged [ajax-on-rails]

functionality built into the Rails framework for simplifying the process of using AJAX requests.

10 questions
6
votes
1 answer

Rails Controller processing as */*

I have a js.erb file where I perform an ajax GET like so: $.get("<%= j @stored_location %>"); All is well, however my server logs show this: Processing by XyzController#index as */* I know that "/" means "any format", and everything is working…
stephenmurdoch
  • 34,024
  • 29
  • 114
  • 189
3
votes
2 answers

Rails form with ajax and non-ajax buttons

I have a form_for an @object with two buttons. While the first button renders the 'show action', the second button renders the same form again. So I'd like the latter to be ajax-handled. Is it possible to have a non-ajax button and an ajax button in…
Darme
  • 6,984
  • 5
  • 37
  • 52
1
vote
1 answer

Some issue with Ajax on Rails

I'm using Ruby on Rails 2.3.8. I've got a vote link that when you click it executes the following action: def vote render :update do |page| page.select(".divbrian").each do |d| page.replace_html d, "YA SEEE" …
Brian Roisentul
  • 4,590
  • 8
  • 53
  • 81
1
vote
2 answers

What are the disadvantages of AJAX on Rails?

what are the scenario's where Ajax could not be used in Rails Application. Is there any disadvantages of AJAX (AJAX on RAILS) if yes please mention which are they?
Salil
  • 46,566
  • 21
  • 122
  • 156
0
votes
2 answers

How to use Ajax for nested form on active admin rails

Please help me out with this problem. I am new on rails I am trying to use the ajax method to get values on the active admin nested form. But only the top of the form gets dynamic values. After changing values on the top one form on the nested form…
0
votes
1 answer

Lightbox getting open multiple time on enter

I am going through a weird problem while using lightbox . Where ever the new light box is used user is able to open the same light box on same page number of time. For e.g Using tab button go to `Lightbox link`. Press enter --> Light box will…
Salil
  • 46,566
  • 21
  • 122
  • 156
0
votes
2 answers

Ajax Request using Rails and jQuery Problem

I have a favourite and un-favourite functionality in my application and I am using jQuery. This functionality works partially. The page gets loaded, and when I click the 'favourite' button(it is inside add_favourite_div element), it sends a XHR…
felix
  • 11,304
  • 13
  • 69
  • 95
0
votes
1 answer

Creating records using RJS in rails

so I've watched http://railscasts.com/episodes/43-ajax-with-rjs but I have a question: In my view I have the following:
<%= render :partial => "test" %>
This works. Using create.rjs to change the content in this div, I…
Elliot
  • 13,580
  • 29
  • 82
  • 118
0
votes
1 answer

How to create a ajax callback function in rails

I'm new to Rails and ajaxification on Rails: I'm facing a problem in writing an ajax callback function. For example, if i am writing a callback function for a delete method and write a callback code for ajax in applicaton.js, it works fine when i…
User16119012
  • 957
  • 11
  • 25
0
votes
1 answer

undefine method submit_to_remote

<%= submit_to_remote(:category, :url => params[:id].blank? ? {:action => 'create'} : {:action => "update", :id => @category}) do %>
Name
<%=…