android - WebView ignore Javascript that invokes PUT/DELETE Http method -
android - WebView ignore Javascript that invokes PUT/DELETE Http method -
i have web view in it's html/javascript makes http phone call put/delete methods. calls seems ignored (i test them on chrome , work fine).
any idea?
here's js code within webview:
var req = new backbone.model(auth); $.ajax({ type: put, url: 'some_url', data: json.stringify(req) });
note ajax phone call jquery.
the reason webview
ignored phone call because of caching. seems put/delete
calls cached.
here's did solve this:
$.ajax({ type: methode, url: 'some_url?d' + new date().gettime(), data: json.stringify(req), });
as can see added new date()
object creation in order overcome caching mechanism.
thanks guy helping out. should check out blog @ http://blog.guya.net/
javascript android http webview http-put
Comments
Post a Comment