[jQuery] Resend teh request when jQuery ajax timeout cause error (s.success is not a function)
[jQuery] Resend teh request when jQuery ajax timeout cause error (s.success is not a function)
Hi all,
following is my code section
******************************************
jQuery.ajax({
url : "
http://localhost:8080/carrots/hello.jsf",
type : "POST",
data : "action=initUI",
timeout : 2,
complete : function(xhr,status) {
if(status != 'success'){
jQuery.post("
http://localhost:8080/carrots/
hello.jsf", "action=initUI", this )
}
},
success : function(data)
{
alert(data);
}
});
******************************************
and the error message is :
*********************************************
s.success is not a function
http://localhost:8080/carrots/jquery/jquery-1.2.6.min.js;jsessionid=6A38C229FD1B756F41891C2BACE6A56D
Line 29
*********************************************
Topic Participants
xwcheng