?
Solved

WebBrowser, dynamic content and history

Posted on 2003-03-29
6
Medium Priority
?
349 Views
Last Modified: 2013-12-03
My wtl application uses an html view window as its main view. It should handle static html files and dynamic content. To load a static page I simply navigate to its url on disk and when I have to use dynamic content, I handle the OnBeforeNavigate2 event and inject some html content to it. I have a problem when trying to use the GoBack() and GoForward() functions since I've canceled the original event (in OnBeforeNavigate2) and the browser didn't add the url into history. How can I add the url manually to the history list of the navigation?
0
Comment
Question by:gilad_no
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 49

Expert Comment

by:DanRollins
ID: 8231952
Thanks for that excellent problem description.

The window.history object does not expose a collection, so there may not be a way to add anything.  As a first suggestion, you could avoid canceling the OnBeforeNavigate2 and inject the HTML into the DOM after OnDocumentComplete (or whatever).  I'll try a fe things and see if that is feasible...

-- Dan
0
 

Author Comment

by:gilad_no
ID: 8232043
I can't inject it with OnDocumentComplete because I don't want IE to start and search the url using the default search method. I know there is an interface (ITravelLogStg) to handle the history list, but I can't find it anywhere (I have the latest platform SDK)
0
 

Author Comment

by:gilad_no
ID: 8232063
I can't inject it with OnDocumentComplete because I don't want IE to start and search the url using the default search method. I know there is an interface (ITravelLogStg) to handle the history list, but I can't find it anywhere (I have the latest platform SDK)
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
LVL 49

Accepted Solution

by:
DanRollins earned 1000 total points
ID: 8233024
Get the latest sdk update at: http://www.microsoft.com/msdownload/platformsdk/sdkupdate/

Documentation at:
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/travellog/reference/objects/travellogstg.asp

Individual files are here (use the drop-down list and select tlogstg.h and tlogstg.idl(:
http://msdn.microsoft.com/downloads/samples/internet/libraries/ie55_lib/Default.asp

You will need to use the
    ITravelLog.CreateEntry
member function.  An example of usage is here:
http://msdn.microsoft.com/library/en-us/dnwebteam/html/webteam04022001.asp?frame=true#webteam04022001_topic3

-- Dan
0
 

Author Comment

by:gilad_no
ID: 8233130
I see it only supports IE 5.5. Can't I do something similar with IE 5.01?
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8233177
Why bother?  Everyone has upgraded to 5.5 or 6 by now.
-- Dan
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question