6 Replies Latest reply on Sep 6, 2016 5:30 AM by likusoft

    Ajax Internal server Error 500

    likusoft Level 1

      Good morning my PhoneGap app I have a problem with an ajax call ..

      This code returns an Internal Server Error 500 :

      $ .ajax ( {
                  url : " http://vm-w7pr-64-129.ar-ent.net:80/ar/wa/tow/rs~dbank/inet_awm_pb/stampaaltro?idLancio=55 7&isXls=0&rpt=2 "
                  type : " POST " ,
                  success : function ( result) {
                      alert ( ' Success . ' ) ;
                  } ,
                  error : function ( XHR , ajaxOptions , thrownError ) {
                      alert ( ' ERROR : ' + thrownError ) ;
                  }
              } ) ;

      But if effects are normally the same as the browser call works by returning a 200 status .


      My app performs already ajax calls on the same domain works ..

      This call in my app works :

       

      $.ajax(

                      {

                      url:  "http://vm-w7pr-64-129.ar-ent.net:80/ar/wa/tow/rs~dbank/inet_awm_pb/proxy?act=PutLst",

                      type: "POST",

                      data: <xmlData>,

                      contentType: "text/xml",

                      dataType: "xml"

                      });

       

       

      The domain of the two called equals..

       

      I plugged in my config.xml :

       

      <access origin="*" />

          <allow-intent href="http://*/*" />

          <allow-intent href="https://*/*" />

          <allow-intent href="tel:*" />

          <allow-intent href="sms:*" />

          <allow-intent href="mailto:*" />

          <allow-intent href="geo:*" />

       

       

      Thanks

      Angelo