Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7166773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:28:02+00:00 2026-05-28T14:28:02+00:00

I have a problem with Phonegap for Windows Phone and jQuery. I have an

  • 0

I have a problem with Phonegap for Windows Phone and jQuery.

I have an Ajax request to a distant server, but the success callback is not executed even if the server respond with a 200 code (I can see the request in the server access_log). The error callback is not executed either.

The code

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

$.ajax({
    url: 'http://example.com',
    data: { foo: 'bar' },
    cache: false,
    dataType: 'json',
    success: function (data) { 
        console.log(data); 
    }
});

Any idea ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:28:03+00:00Added an answer on May 28, 2026 at 2:28 pm

    It seems to be a known issue of local XHR shim implementation in phone gap 1.3.0. You can switch to previous version or comment everything in phonegap-1.3.0.js starting from line 3551 to the end of the file

    //(function(win,doc){
    //
    //    doc.addEventListener("DOMContentLoaded",function()
    //    { 
    // ......
    //      if(!docDomain || docDomain.length == 0)
    //      {
    //          //console.log("adding our own Local XHR shim ");
    //          var aliasXHR = win.XMLHttpRequest;
    //      
    //          win.XMLHttpRequest = function(){};
    //      
    //          var UNSENT = 0;
    // ......
    //
    //    
    //})(window,document);
    

    EDIT
    PhoneGap 1.4.0rc1 is commited

    https://github.com/purplecabbage/callback-windows-phone

    Changes include fixes for XHR to local files, + fixes to allow jQM single/multipage apps function correctly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making an PhoneGap app using Jquery Mobile, but I have a little problem
I have a strange problem in my PhoneGap-based android app. On certain screens, the
I have some strange scrolling problems with my PhoneGap (using jQuery Mobile) app: I'm
I have a scaling problem in a PhoneGap app. My issue is very similar
I have a problem with JqueryMobile and Phonegap app. If I rotate the mobile
I have PhoneGap app in Android. Now I am ready to publish it, but
I have an application built with Phonegap and JQuery Mobile. Whenever the soft keyboard
I have built a test app on android using this cool-ass PhoneGap framework, but
I have a relatively easy problem but its causing me a headache. I want
i want to developer an app with phonegap. But in my app, i have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.