doedje / jquery.soap

This script uses $.ajax to send a SOAP:Envelope. It can take XML DOM, XML string or JSON as input and the response can be returned as either XML DOM, XML string or JSON too.
352 stars 147 forks source link

statusCode #71

Closed AndersMygind closed 9 years ago

AndersMygind commented 9 years ago

Very nice plugin indeed! I have a question concerning checking for statusCodes. In $.ajax it is possible to include a function depending on statusCode getting back. Do I have similar feature in your plugin? Something like:

$.soap({
data:t3, statusCode : { 500 : function() { //if it's not in the db s.erroruuidserviceShow.alert(); });
} },

Thanks in advance! best regards Anders Gram Mygind

doedje commented 9 years ago

fairly easy to implement, will do next monday... enjoying my weekend at the moment =]

doedje commented 9 years ago

(wrong button...)

doedje commented 9 years ago

Version 1.6.0 is now available and features the statusCode option as requested...