Discussion:
Missing navigation complete events from web browser control for particular request type
(too old to reply)
Michael Kennedy [UB]
2003-10-23 16:51:07 UTC
Permalink
Hi Everyone,

I am working with a Browser Helper Object for IE (written in C++/ATL VS.NET
2003). Among other things, this BHO lists for navigation attempt and
navigation completed events. For almost all web requests this works
perfectly. That is, for every nav attempt there is a corresponding nav
completed event.

However, I recently ran across the following type of address which causes a
nav attempt but no nav completed event even though the content is clearly
downloaded and loaded in IE. I believe it's a bug - or at least a
shortcoming - of the IE web browser control.

The address looks like this:

javascript:showAd()

which brings out a "fly-out" pane containing an advertisement. For an
example, have a look at this page:

http://www.cnet.com/4520-7388_1-5077704-1.html

To get the fly-out to cause the navigation in quesiton, you need to click
the "expand" arrow on the far right, centered vertically on the page.

Any ideas? Is this a bug?

Thanks,
Michael
Igor Tandetnik
2003-10-23 17:23:00 UTC
Permalink
Post by Michael Kennedy [UB]
However, I recently ran across the following type of address which causes a
nav attempt but no nav completed event even though the content is clearly
downloaded and loaded in IE. I believe it's a bug - or at least a
shortcoming - of the IE web browser control.
javascript:showAd()
This is a so-called pseudo-URL. It does not cause any navigation, it
just instructs the browser to execute the script fragment. Such URLs are
reported by BeforeNavigate2 but don't produce any other events. Another
Post by Michael Kennedy [UB]
which brings out a "fly-out" pane containing an advertisement.
No navigation occurs here. The script function simply manipulates DHTML
to make certain elements shown or hidden. The data is already loaded, no
extra trip to the server is needed.
--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
Michael Kennedy [UB]
2003-10-23 19:03:22 UTC
Permalink
HI Igor,

Thanks for the information. Is there a list of known psuedo-urls?

Regards,
Michael
Post by Michael Kennedy [UB]
Post by Michael Kennedy [UB]
However, I recently ran across the following type of address which
causes a
Post by Michael Kennedy [UB]
nav attempt but no nav completed event even though the content is
clearly
Post by Michael Kennedy [UB]
downloaded and loaded in IE. I believe it's a bug - or at least a
shortcoming - of the IE web browser control.
javascript:showAd()
This is a so-called pseudo-URL. It does not cause any navigation, it
just instructs the browser to execute the script fragment. Such URLs are
reported by BeforeNavigate2 but don't produce any other events. Another
Post by Michael Kennedy [UB]
which brings out a "fly-out" pane containing an advertisement.
No navigation occurs here. The script function simply manipulates DHTML
to make certain elements shown or hidden. The data is already loaded, no
extra trip to the server is needed.
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
Igor Tandetnik
2003-10-23 19:09:24 UTC
Permalink
Post by Michael Kennedy [UB]
Thanks for the information. Is there a list of known psuedo-urls?
I know about three that are installed out of the box: javascript: ,
vbscript: , and view-source: . However, anyone can develop a new scheme
that behaves this way, by implementing and installing an Asyncronous
Pluggable Protocol (APP) handler.
--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
Michael Kennedy [UB]
2003-10-23 19:18:09 UTC
Permalink
Igor,

Thanks a lot!

Regards,
Michael
Post by Igor Tandetnik
Post by Michael Kennedy [UB]
Thanks for the information. Is there a list of known psuedo-urls?
I know about three that are installed out of the box: javascript: ,
vbscript: , and view-source: . However, anyone can develop a new scheme
that behaves this way, by implementing and installing an Asyncronous
Pluggable Protocol (APP) handler.
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
Continue reading on narkive:
Search results for 'Missing navigation complete events from web browser control for particular request type' (Questions and Answers)
3
replies
Anybody know of a function in SAP R/3 to keep G/L account descriptions in line over systems and languages?
started 2006-04-12 02:33:03 UTC
software
Loading...