Ask about manipulating travel log.
Hi,
When I was using the travel log of WebBrowser control (via
ITravelLogStg, IEnumTravelLogEntry, etc.), I got into some problems.
The following is a case (you can try it in IE and examine its back/
forward list):
Action Log entries after the action.
(retrieved from IEnumTravelLogEntry)
==========================================================
1) Navigate to page A. ( log_entry_A )
2) Navigate to page B. ( log_entry_A
log_entry_B_1)
3) Make a subframe navigation in page B. ( log_entry_A
log_entry_B_1 log_entry_B_2)
4) ITravelLogStg::TravelTo(log_entry_A) ( log_entry_A
log_entry_B_2)
Please note that the travel log entries for navigation in page B
collapse, leaving only the last entry we have been in page B. [ It is
not necessarily the last one that is created for page B, for example,
if we travel back to log_entry_B_1 before step (4), then the list
would become (log_entry_A log_entry_B_1) ].
5) At this time, ITravelLogStg::TravelTo(log_entry_B_1) will fail,
even we know that this log entry is existent. The possible way to
travel to log_entry_B_1 is:
ITravelLogStg::TravelTo(log_entry_B_2), which will make the log
entry list expands to ( log_entry_A log_entry_B_1 log_entry_B_2);
and then ITravelLogStg::TravelTo(log_entry_B_1).
My question is:
In step (5), is it possible for me to travel directly to
log_entry_B_1?
Could I gain more control of the travel log? The ITravelLogStg,
IEnumTravelLogEntry interfaces seem limited.
Could I persist travel log entries? For example, into strings?
Thanks very much!! :)
date: Sun, 20 Apr 2008 00:48:46 -0700 (PDT)
author: yuzhu.shen