incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse MacFadyen (Resolved) (JIRA)" <>
Subject [jira] [Resolved] (CB-130) wrappedXHR breaks jquery.ajax request to rest server
Date Fri, 20 Jan 2012 00:36:41 GMT


Jesse MacFadyen resolved CB-130.

    Resolution: Cannot Reproduce

This functions as expected:

$.support.cors = true;
$.mobile.allowCrossDomainPages = true;
url: "",
cache: false,
dataType: 'json',
error: function (jqXHR, textStatus, errorThrown) { console.log("AJAX error:" +  textStatus
+ ", " + errorThrown); },
success: function (data, textStatus, jqXHR)  { console.log("AJAX Success :: " +  data.count
); }

Tested both before deviceready, and after. The issue may be in your success handler.
When requesting dataType:'json' the data value returned will be an Object.
> wrappedXHR breaks jquery.ajax request to rest server
> ----------------------------------------------------
>                 Key: CB-130
>                 URL:
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: WP7
>    Affects Versions: 1.2.0
>         Environment: WP7.1 SDK
> Simulator
> Latest commit in github
>            Reporter: Binh An Tran
>            Assignee: Jesse MacFadyen
>              Labels: ajax
> I use the fix in latest phonegap fpr wp7 commit to fix the problem with ajax navigation
between pages for jquery mobile. But the fix breaks my ajax request using jquery ($.ajax).
The request is made but either succeed or failed callback funtion is called.
> There is a sample project in the attachment. When i comment out the wrappedXHR part in
phonegap.js, the ajax call to rest server works fine, but the ajax transition between pages
doesn't work. When i leave the wrappedXHR part in phonegap.js, ajax call doesn't works, page
transition works.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message