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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.