Shoutbox

[?] BrowserControl interface: Interacting with the history? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [?] BrowserControl interface: Interacting with the history? (/showthread.php?tid=87462)

[?] BrowserControl interface: Interacting with the history? by Matti on 11-25-2008 at 08:18 PM

Hello there,

I had a question regarding the BrowserControl. I'm currently working on something "awesome" for Countdown Live using an integrated browser which I want to communicate with. For example, I have Back and Forward buttons which trigger objBrowser.GoBack and objBrowser.GoForward respectively. (objBrowser being the result of PlusWnd.Browser_GetInterface())

Now, what I was wondering is if there's a way to get access to the history list of a BrowserControl, that is: being able to read the list of recently visited pages and clear the list. I've been looking through the InternetExplorer object reference but I only found GoBack and GoForward.

This may sound like an impossible question, but I hope someone here can help me. :P


RE: [?] BrowserControl interface: Interacting with the history? by matty on 11-25-2008 at 08:25 PM

How do I do this In IE6


RE: [?] BrowserControl interface: Interacting with the history? by Matti on 11-25-2008 at 08:30 PM

No: I mean the history cache stored for that particular browser control. E.g. I open the window, click a link in the browser control and it adds it to the history list. Now I want to retrieve that whole list for that control some way. :P


RE: [?] BrowserControl interface: Interacting with the history? by Eljay on 11-25-2008 at 08:33 PM

Surely you can just detect navigation events and manually keep track of the history...


RE: [?] BrowserControl interface: Interacting with the history? by Matti on 11-26-2008 at 03:44 PM

quote:
Originally posted by Eljay
Surely you can just detect navigation events and manually keep track of the history...
Yes, sure I can do that. The thing is: I can easily detect when the page changes, but I have to find a way to distinguish between navigating to a new page or browsing through the history itself. When the user clicks the Back button, it'll load the previous page but it shouldn't add it to the recent pages.

Hmm, it seems like there are GetProperty() and PutProperty() methods which I can use... Interesting. I might even get this to work! :P