search for: currentcelltext

Displaying 2 results from an estimated 2 matches for "currentcelltext".

2013 Mar 06
2
Refresh a partial onClick using ajax call in rails 3.x
Hi All, I want to refresh a partial onClick, onClick i am making ajax call and getting the data but i am unable to refresh the partial. here is the code IN views: home.html.erb $(document).ready(function() { var currentCellText; $(".inline").click(function() { currentCellText = $(this).text(); $.ajax({ type: ''GET'', dataType: "json", url:''/test'', async: false, data:{ foo1:currentCellText }, dataType: "json", success:function(data){...
2013 Mar 11
8
Access instance variable in ajax rendered by controller - Rails
I am making an ajax call to my controller. Controller is sending in the response in an instance variable(as a json object). How can I access the same in my ajax javascript? This is my ajax call code: $(document).ready(function(){ var currentCellText; $(".inline").click(function() { currentCellText = $(this).text(); $.ajax({ type: ''GET'', dataType: "json", url:''/test'', async: false, data:{ foo1:currentCellText }, dataType: "json", success:function(data){ alert(''<%= @re...