[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...
Comments
- Ryan Sullivan 2011-04-15
I have the same problem.
- 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();
};
- 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?
- kevinwhinnery 2011-04-15
This is for both
- Jeff Haynie 2011-04-15
- Jeff Haynie 2011-04-15
this has been fixed for iphone but still broken for android.
- 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
- Don Thorp 2011-04-15
Fixed with #126
- Nikolai Derzhak 2011-04-15 rollback wrong update