On Fri, Mar 16, 2012 at 3:08 PM, kronos <jeremyvillalo...@gmail.com> wrote: > When I enabled javascript on the webview, > the method overloading shouldOverrideUrlLoading() from WebViewClient > would no longer be triggered by user clicks.
shouldOverrideUrlLoading() should cover ordinary link clicks (e.g., <a href="http://...">) and redirects. If your link clicks trigger JavaScript, or you have POSTed forms, etc., shouldOverrideUrlLoading() is not called. > Is there a more complete WebView conponent that can display javascript > and be overloaded to provide an alternative process to load a link ? If your links are actually JavaScript statements, you will need to alter that JavaScript to call some Java method you inject via addJavaScriptInterface(), so you can get control and do something. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en