All Questions
4
questions
0
votes
1
answer
178
views
jquery custom event in ajax success callback not working without settimeout
I have the following jquery ajax call:
$.ajax({
type: "POST",
url: url,
data: data,
success: function (data, textStatus, jqXHR) {
// Without setTimeout, the ...
2
votes
1
answer
2k
views
Trigger event after event.preventDefault
I'm catching clicks on submit button of a form. I do event.preventDefault() to disable default browser action so I'm able to do my stuff after clicking to button. I this case I do AJAX call to server. ...
3
votes
1
answer
3k
views
JQuery and Rails 3 ajax:failure callback
I'm using Rails 3 and JQuery 1.4.2 and am trying to bind to the ajax:failure callback on a given remote form submission. The callback works fine, however, the xhr variable that's passed back seems to ...
0
votes
1
answer
122
views
Tricky jQuery operation, not sure if I am using 'this' property either
Using jQuery, I am binding some image tags with a click event like this:
$('.imageClass > a > img').bind('click', onImageClick);
this.onImageClick = function() {
$.post("/blah/123", { test ...