Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-4681

jQuery Ajax callbacks not executed

    XMLWordPrintableJSON

Details

    Description

      I have an Ajax request to a server, but the success callback or any callback is not executed even if the server respond with a 200 code (I saw the logs using Wireshark).

      $.ajax({
          url: 'http://example.com',
          data: { foo: 'bar' },
          dataType: 'json',
          success: function (data) { 
              console.log(data); 
          },
          error: function(){
              console.log("Error"); 
          },
          complete: function(){
              console.log("Complete");
          }
      });
      

      Attachments

        Activity

          People

            purplecabbage Jesse MacFadyen
            jonathannaguin Jonathan Naguin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: