Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to Navigate to some content on the dynamically created page?

0 views
Skip to first unread message

Adam

unread,
Jun 9, 2004, 1:11:56 PM6/9/04
to
1. I IWebBrowser2::Navigate to about:blank
2. I write <a name='top'> to the browser
3. I write some more content [so that the window is scrolled down]
4. I want to be able to jump to the '#top' once I click the button that is
outside the browser

if I send "#top" to the IWebBrowser2::Navigate, it doesn't work
IWebBrowser2::Navigate2 doesn't seem to handle it either
the IWebBrowser2::LocationURL gives me http:/// for the dynamically created
content

any idea?

thx in adv.
A.

Igor Tandetnik

unread,
Jun 9, 2004, 1:17:03 PM6/9/04
to
"Adam" <em...@dot.com> wrote in message
news:ca7gf2$q5c$1...@nemesis.news.tpi.pl

> 1. I IWebBrowser2::Navigate to about:blank
> 2. I write <a name='top'> to the browser
> 3. I write some more content [so that the window is scrolled down]
> 4. I want to be able to jump to the '#top' once I click the button
> that is outside the browser

Can't you just do

body.scrollTop = 0;

?
--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Adam

unread,
Jun 9, 2004, 1:31:00 PM6/9/04
to
> Can't you just do
> body.scrollTop = 0;

oh... sorry... I should have given a better example... ;)
I would like to go to any place marked with <a name='whatever'>
so far I see no hope while reading the answers on groups.google.com
- there's some potential solution mentioned in
http://groups.google.com/groups?th=57233dbedc79cdbc
but I couldn't find it in google archives...

still... maybe some other idea?

A.

Igor Tandetnik

unread,
Jun 9, 2004, 1:44:04 PM6/9/04
to
"Adam" <em...@dot.com> wrote in message
news:ca7hiv$tv$1...@nemesis.news.tpi.pl

>> Can't you just do
>> body.scrollTop = 0;
>
> oh... sorry... I should have given a better example... ;)
> I would like to go to any place marked with <a name='whatever'>

How about this then:

document.all.tags("a").item("whatever").scrollIntoView();

Adam

unread,
Jun 9, 2004, 1:48:49 PM6/9/04
to
> document.all.tags("a").item("whatever").scrollIntoView();

whoaw... that's what I call real hack
gonna try this one...
thx a lot
=o)

A.

0 new messages