I've been over this for the past entire two days. I assume that JQMobi(Intel AppFramework) is a light version of JQuery plus a customized UI framework for mobile devices (iOS and Android). Read a lot about JQuery Deferred() methods in many websites and blogs, and tried to implement some examples in a phonegap project of mine that uses JQMobi. My ajax calls are been fired correctly, and success callback is successful:
$.ajax({
url: 'http://drsolution.com.br/teste/texts.json',
async: true,
dataType:'json',
success: function(data)
{
// do something with the json object, THIS IS ALWAYS WORKING
},
error: function(error)
{
console.log("error");
}
});
But when I try to use the deferred callback methods in the promise object returned by the ajax call, I get no response from them:
$.ajax({
url: 'http://drsolution.com.br/teste/texts.json',
async: true,
dataType:'json',
success: function(data)
{
// do something with the json object, THIS IS ALWAYS WORKING
},
error: function(error)
{
console.log("error");
}
}).done(function{
// never fired
}).fail(function {
// never fired
}).always(function {
//never fired
});
What is happening ? The deferred object is not implemented in JQMobi (Intel AppFramework) ?
Thank you in advance.
notice I'm the author of App Framework
App Framework (jqMobi) is NOT jQuery. It provides syntax similar to jQuery.
deferred/done/fail/always are not implemented in App Framework.