Jump to content

Ajax control server side error occure.


lilmer

Recommended Posts

Hello I am using JSONP as dataType on my AJAX, but there's  an incident that a Transaction was successfully complete but a PHP error text occured while trying pass the data.

 

E.g.

SMTP Error: Data not accepted.
Unable to send Mail: SMTP Error: Data not accepted.<p>SMTP server error: Requested action aborted: This mail account has sent too many messages in a short amount of time. Please try later.
</p>

jQuery111001592713373247534_1407318091484({"result":11308,"err":"no"})

There was an unexpected error happen, SMTP Error. So in my javascript  jquery ajax the response will go to 

.error(function(xhr,status,error){
 console.log(xhr);
});

But the thing here is that the transaction  was successfully complete. So how do I tell the to the client side about the transaction process and the error happen? 

Link to comment
https://forums.phpfreaks.com/topic/290301-ajax-control-server-side-error-occure/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.