jquery .load() function is not working under phonegap on iPad. it works in mobile safari very well. But it's not working in Phonegap app. Any help would be appreciated.
UPDATE: Here is what the code looks like:
this.image_container.load( function(response, status, xhr) {
var dis = this;
var imgWidth = dis.image_container.width();
var imgHeight = dis.image_container.height();
dis.containerEl.css({
//some css addition
}).animate( { "opacity": "1" }, 400, "linear" );
});
While debugging server response is
{"responseText":"","status":404,"statusText":"error"}
But I only get this in iPad phonegap. In mobile safari it just works fine.
Thanks in advance.
It still is not working. Here is code snippet:
this.image_container.load( function(response, status, xhr) {
var dis = this;
var imgWidth = dis.image_container.width();
var imgHeight = dis.image_container.height();
dis.containerEl.css({
//some css addition
}).animate( { "opacity": "1" }, 400, "linear" );
});
While debugging server response is
{"responseText":"","status":404,"statusText":"error"}
But I only get this in iPad phonegap. In mobile safari it just works fine.
Thanks in advance.