incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marien Brethouwer (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-130) wrappedXHR breaks jquery.ajax request to rest server
Date Tue, 20 Dec 2011 11:21:30 GMT

    [ https://issues.apache.org/jira/browse/CB-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13173089#comment-13173089
] 

Marien Brethouwer commented on CB-130:
--------------------------------------

I am having the same issue with phonegap 1.3.0 on WP7 with jQuery Mobile.

I use the following code:

$.support.cors = true;
$.mobile.allowCrossDomainPages = true;

$.ajax({
        url: "http://myserver/service-that-returns-json",
        cache: false,
        dataType: 'json',
        error: function (jqXHR, textStatus, errorThrown) {
            $("#status").text(textStatus + ", " + errorThrown);
        },
        success: function (data, textStatus, jqXHR) {
           $("#status).text(data);
        }
    });

Both the success and error callback functions are not triggered.

My server has logged the Request, the same call works on Phonegap for Android and iOS, but
not for WP7.
                
> wrappedXHR breaks jquery.ajax request to rest server
> ----------------------------------------------------
>
>                 Key: CB-130
>                 URL: https://issues.apache.org/jira/browse/CB-130
>             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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message