Displaying 2 results from an estimated 2 matches for "textstatus".
2013 May 27
6
Headache with Ajax in Rails using jQuery
Hello everyone, I''m a newbie at Ruby on Rails.  I spent nearly two days
of the Memorial Day weekend stumbling upon making Ajax working in Rails.
At this point, I''m so exhausted and hope that I can get some help to
move forward.  I have tried nearly everything I found on Google but
still not successful.  Initially, I tried the Ajax approach offered by
Rails but did not work, so I
2011 Sep 06
8
Ajax and rails 3 UJS (jquery)
...me => ''John''}
    }
    end
  end
4) added the following to application.js
// Place your application-specific JavaScript functions and classes
here
// This file is automatically included by
javascript_include_tag :defaults
$(document).ready(function () {
  function(e, data, textStatus, jqXHR){
   alert(data.name + '' has been deleted'');
	$(''a[data-method="delete"]'').css("color", "red");
  });
})
5) the view, app/views/parts/index.html.erb has deletion links for
each part item:
<% if @parts != nil %>
<ta...