Re: [android-developers] Re: WebView ignore Javascript that invokes PUT/DELETE Http method
You might look at setCacheMode() on WebSettings, if caching seems to
be your issue.
On Tue, Jan 17, 2012 at 8:35 AM, Ori Harel <ori.harel@gmail.com> wrote:
> Those are not part of Android, but the problem exist only in Android
> WebView.
> Anyway, I solved it by forcing the WebView to ignore the cache by:
>
>
> $.ajax({
> type: methode,
> url: 'some_url?d' + new Date().getTime(),
> data: JSON.stringify(req),
> });
>
> As you can see I added a new Date() object creation in order to overcome
> that caching mechanism.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
_The Busy Coder's Guide to Android Development_ Version 3.7 Available!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home