Hi,
I have an ajax request, I return the following...
But I cannot find the returned data anywhere in the ajax response
All that does is show me 'Bad Request'?
How do I get access to the actual returned HTML output from the 400 response?
Success works fine....
So where is the data stored in an 'error' return?
Thanks,
1DMF.
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
I have an ajax request, I return the following...
Code:
print "Content-type: text/html\n";
print "Status: 400 Bad Request\n\n";
print $template->output;
But I cannot find the returned data anywhere in the ajax response
Code:
error: function(jqXHR){
showDialog(jqXHR.responseText,'AJAX Failed');
}
All that does is show me 'Bad Request'?
How do I get access to the actual returned HTML output from the 400 response?
Success works fine....
Code:
success: function(data){
showDialog(data,'AJAX Success');
}
So where is the data stored in an 'error' return?
Thanks,
1DMF.
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music