Re: [Rails] Ajax test not working

2012-10-26 Thread Rob Biedenharn
On Oct 25, 2012, at 4:32 PM, Jason Walsh wrote: > webber han wrote in post #1081214: >> Jason Walsh wrote in post #1080993: >>> Am having real probs trying to use Ajax with my Rails app. I have set up >>> a test as >>> >>> follows: >>> >>> in javascript file: >>> >>> window.onload = function()

[Rails] Ajax test not working

2012-10-24 Thread Jason Walsh
Am having real probs trying to use Ajax with my Rails app. I have set up a test as follows: in javascript file: window.onload = function() { $('#test').bind('ajax:success', function() { alert("success"); }; } in view: <%= link_to "test", { :action => :getDiagram }, :remote => tr