Re: URI with anchor tag (#) does not work with IE 7 using WebBrowser



Thanks for the suggestion. I tried it and the page will scroll to the
bottom if I refresh the page manually. Without doing that, the page did
not display the new page. I tried to call Refresh from the program and
it crashed the application.

Thanks!

Ming

Troels Jakobsen wrote:
Apparently this is a bug in IE7.

Perhaps you could just use window.scrollBy with a ridicolously large offset:

<body onload="window.scrollBy(0,999999);">

Troels

<mingleenj@xxxxxxxxx> wrote in message
news:1169215276.883806.296130@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
When "Navigate" to an URI that specifies an anchor as part of the URI
using WebBrowser Control
in an MFC application, it did not work with Internet Explorer 7. The
same code works fine for IE 6.
For URI in the form of file:///C:/sample.html#contentEnd. If I did it
in code using WebBrowser
Navigate, the page is displayed however it did not jump to the anchor
as specified in the URI.However,
if I pasted the same URI to IE 7 browser, the page is displayed at the
proper anchor.

I have seen some post with similar problem but did not see any
work-around and/or resolution
to the problem. I did not find anything in the Microsoft Support site.

Any suggestions for workaround and/or resolution.

The web page that we are trying to display is very simple but we need
to jump to the end of the page
everytime the page is loaded. I have tried to add
window.location.hash="#content_end" to jump to
the end of the page; however, the page is displayed but did not jump to
the anchor however, when I
refresh the WebBrowser control window (right mouse click to select
refresh menu), the page is displayed
and jump to the proper anchor. Here's the page I used and in the code I
use the Navigate method to
go the URI to display the page. The problem is only with IE 7.

.



Relevant Pages

  • Re: URI with anchor tag (#) does not work with IE 7 using WebBrowser
    ... the page is displayed however it did not jump to the anchor ... The web page that we are trying to display is very simple but we need ... refresh the WebBrowser control window (right mouse click to select ... and jump to the proper anchor. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Is threading the right solution for this challenge?
    ... A typical screen "refresh" could take up to 10-15 ... the display thread (since it is only inquiring there is no danger ... interrupt itself to check for user input and react to it. ... In ACCEPT with TIMEOUT, what happens if the user was in the process of ...
    (comp.lang.cobol)
  • anchor id problem with fixed and scrolling divs
    ... I have a web page divided into two major segments, ... to jump to the first item in the scrolling section that starts with the ... span.topofpage {display: block; ... span.title {font-weight: bold; ...
    (comp.infosystems.www.authoring.html)
  • Re: Need advice on paging data from data source.
    ... There is good reason that those example on the web don't allow you to jump ... If you have huge data to load and you MUST provide jumping around try to ... I would like my interface to display the ... > articles that I have read assume that you are just paging forward or ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Refreshing a Windows Form
    ... What you really need to do is call a method in the parent form that refresh ... refreshing the form is only repaint it, each control repaint itself using ... If the info that they need to display changed, you will have to update them, ...
    (microsoft.public.dotnet.languages.csharp)