Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86DC9109FD for ; Mon, 16 Sep 2013 19:18:53 +0000 (UTC) Received: (qmail 30694 invoked by uid 500); 16 Sep 2013 19:18:52 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 30661 invoked by uid 500); 16 Sep 2013 19:18:51 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 30652 invoked by uid 99); 16 Sep 2013 19:18:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Sep 2013 19:18:51 +0000 Date: Mon, 16 Sep 2013 19:18:51 +0000 (UTC) From: "Jesse MacFadyen (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-4681) jQuery Ajax callbacks not executed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-4681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13768645#comment-13768645 ] Jesse MacFadyen commented on CB-4681: ------------------------------------- Here is the new failing test: {code} it("XMLHttpRequest.spec.9 calls onload from successful http get", function () { var win = jasmine.createSpy().andCallFake(function (res) { }); var lose = createDoNotCallSpy('xhrFail'); var xhr = createXHR("http://issues.apache.org/jira/browse/CB-4681", true, win, lose); waitsForAny(win, lose); }); {code} > jQuery Ajax callbacks not executed > ---------------------------------- > > Key: CB-4681 > URL: https://issues.apache.org/jira/browse/CB-4681 > Project: Apache Cordova > Issue Type: Bug > Components: WP8 > Affects Versions: 3.0.0 > Environment: Windows 8 Professional > Reporter: Jonathan Naguin > Assignee: Jesse MacFadyen > Priority: Critical > Fix For: 3.1.0 > > > 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). > {code} > $.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"); > } > }); > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira