Re: URI with anchor tag (#) does not work with IE 7 using WebBrowser
- From: mingleenj@xxxxxxxxx
- Date: 22 Jan 2007 06:04:55 -0800
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.
.
- References:
- URI with anchor tag (#) does not work with IE 7 using WebBrowser
- From: mingleenj
- Re: URI with anchor tag (#) does not work with IE 7 using WebBrowser
- From: Troels Jakobsen
- URI with anchor tag (#) does not work with IE 7 using WebBrowser
- Prev by Date: Re: Scrollheight Not Accurate
- Next by Date: Re: Disable Context Menu Item
- Previous by thread: Re: URI with anchor tag (#) does not work with IE 7 using WebBrowser
- Next by thread: Scrollheight Not Accurate
- Index(es):
Relevant Pages
|
|