On Thu, Sep 30, 2010 at 2:20 PM, paladin <[email protected]> wrote:
> In an HTML page, I have at one place, <a name="updates"></a>, but in a
> WebView, when I click on <a href="#updates">updates</a>, it doesn't
> jump to the correct place. It works fine if I load that page in a
> browser. It does nothing but mark that link as visited in the WebView.
> Is there some setting that I'm not correctly configuring?
You might try using full urls and implement you own shouldOverrideUrlLoading():
public class MyWebViewClient extends WebViewClient
{
public boolean shouldOverrideUrlLoading( WebView view, String url )
{
view.loadUrl( url );
return true;
}
}
I'm guessing it's failing because your hrefs to your named anchors
aren't full urls, or you need to tell your webview to follow your
clicks, or both.
--
Greg Donald
destiney.com | gregdonald.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en