Closed fadaytak closed 8 years ago
you can add in codebird.js file this code
// function called when an error occurs, including a timeout
xml.onerror = function(e) {
callback(null,null,e);
};
xml.timeout = 30000; // in milliseconds
and when you call __call function you do like this
codebird.__call("users_show", params, function(reply,rate,err) {
if(err){
alert("err" + JSON.stringify(err));
}
if(reply){
result = reply;
}
callback(result);
}, false // this parameter required
);
you can use this file
https://github.com/hamzaezzi/codebird-js/blob/develop/codebird.js
hope help you
yes !!! thanks, works fine
Reopening this issue as this should be part of Codebird itself. @hamzaezzi Can you send a PR, please?
done
@hamzaezzi Please test in develop
branch now.
hi,
im using this library with titanium and works fine, but when im testing it without internet connection to make some alert for client saying that a something was happen and we cannot share actually ....
but the problem i can't catch any thing no error ...
is the library get back error to call function ? some exemple to do this ?
cordially