success, error events aren't working for ajax
Posted
by Rigo Vides
on Stack Overflow
See other posts from Stack Overflow
or by Rigo Vides
Published on 2010-04-29T15:57:22Z
Indexed on
2010/04/29
16:07 UTC
Read the original article
Hit count: 412
Hi everyone, I have the following code:
$(document).ready(function(){
$.ajax({
url: "svc/GetTweetsByUser.php",
type: "POST",
success: function(data) {
alert('success');
},
failure: function(){
alert('fail');
},
data: ({twitter_user : 'AdoboHobo'}),
dataType: "xml"
}
);//endof ajax
});
I'm kind of starting with web and ajax stuff... this worked perfectly by yesterday. I don't know what is happening now that neither success nor failure events are triggering. I'm shure that the request and response are perfectly working, I checked that with firebug.
Does anyone have any ideas for this? Thanks in advance.
© Stack Overflow or respective owner