[TIMOB-169] jQuery Ajax not working in 0.7 or 0.7.1
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:52:12.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 0.8.0 |
Components | Android |
Labels | android, defect, ios, iphone |
Reporter | Kevin Whinnery |
Assignee | Don Thorp |
Created | 2011-04-15T02:24:40.000+0000 |
Updated | 2011-04-17T01:52:12.000+0000 |
Description
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:
jQuery.ajax({
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...
I have the same problem.
Even after adding the following code to my Javascript, problem still exists:
window.XMLHttpRequest = function() {
};
i thought we had a test case for this in Kitchen Sink. If not, i will add.
is this for iphone, android or both?
This is for both
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...
this has been fixed for iphone but still broken for android.
Last I checked this was broken on iPhone. That is what I've been developing on, using 0.7.1
Fixed with #126
rollback wrong update