Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-169] jQuery Ajax not working in 0.7 or 0.7.1

GitHub Issuen/a
Resolution Date2011-04-17T01:52:12.000+0000
Affected Version/sn/a
Fix Version/sRelease 0.8.0
Labelsandroid, defect, ios, iphone
ReporterKevin Whinnery
AssigneeDon Thorp


It seems that overriding the default XMLHttpRequest() function is not enough to satisfy jQuery - will check out the other libraries as well. This code will print the error message in the console:

  url: "http://www.google.com",
  method: "GET",
  dataType: "html",
  success: function(data) {
    Titanium.API.info("jQuery FTW!!!!!!!!!");
  error: function(xhr,error) {
    Titanium.API.error("jQuery FAIL!!!!!!!!!");

Will get the debug version of jQuery to see if I can get a specific error...


  1. Ryan Sullivan 2011-04-15

    I have the same problem.

  2. Ryan Sullivan 2011-04-15

    Even after adding the following code to my Javascript, problem still exists:

    window.XMLHttpRequest = function() {

       return new Titanium.Network.createHTTPClient();


  3. Jeff Haynie 2011-04-15

    i thought we had a test case for this in Kitchen Sink. If not, i will add.

    is this for iphone, android or both?

  4. kevinwhinnery 2011-04-15

    This is for both

  5. Jeff Haynie 2011-04-15

    this is related to https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/126-httpclient-status-appears-to-be-incorrect#ticket-126-4"> https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobi...

  6. Jeff Haynie 2011-04-15

    this has been fixed for iphone but still broken for android.

  7. Ryan Sullivan 2011-04-15

    Last I checked this was broken on iPhone. That is what I've been developing on, using 0.7.1

  8. Don Thorp 2011-04-15

    Fixed with #126

  9. Nikolai Derzhak 2011-04-15

    rollback wrong update

JSON Source