Reputation: 21
I have a PhoneGap application which relies quite heavily on the jQuery ajaxComplete function.
This appears to be working in all browsers (including Safari on iOS), but is not working on iOS when loaded from PhoneGap.
It is as though the ajaxComplete handler is completely removed by PhoneGap when the page loads.
Does any one have any experience with this?
Thanks in advanced,
Aaron
Upvotes: 2
Views: 1107
Reputation: 18956
To allow AJAX in iOS applications, we must modify ExternalHosts
Ex: *.your-ajax-site.com
Note: just add hostname, NOT including protocol, NOT http://
Upvotes: 5
Reputation: 373
Maybe you like this:
$.ajaxSetup({
beforeSend:function(){...},
complete:function(){...},
success:function(){...}
});
Upvotes: 0