Javascript code, using jQuery 1.7:
$( function() {
$.get('/ajax_dummy', function() { alert('foo'); })
});
With Firebug I can see that the HTTP GET request is sent and a "hello world" response with code 200 is returned, so everything seems fine. But the callback is never called.
I have no idea what is wrong; this should be so simple, right?
$.get()
will fail silently. Switch to using$.ajax()
with anerror
method and see if that gets run instead. If it does, take a look at the arguments given to to see what's going wrong. – Barnum