How do I trap an http 500 error
Hello,
Im calling a java program that will make an ajax call using ssl communications to paypal. After the program completes normally Im getting a http 500 error.
The program is completing normally, and even returning the response from paypal. But when the program terminates the browser is telling me Im getting an http 500 server error.
The below variable $ipal is returning a response.
Is there a a way in my ajax call to trap the error Im getting?
- $.ajax({
- type: 'get',
- async: false,
- dataType: 'jsonp',
- url:'IPAL03A.PGM',
- data:{port:"TST", SCCUST:$cust, totpra:totprice.toString(), tottxa:tottax.toString(), totsha:totship.toString()},
- success: function($ipal){
- $("#waitmsg").hide();
- $("#ipal").empty();
- $("#ipal").append($ipal);
- $("#ipal").dialog({
- modal: true,
- height: 650,
- width: 650,
- buttons: {
- Close: function() {
- $( this ).dialog( "close" );
- }
- }
- });