Discussion Locked

vb6 web browser form

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have vb6 web browser form that displays various html pages. When a user
clicks on a link (to what I will call the "destination page") within the
html page the web browser form's BeforeNavigate2 event is fired and code
within that event loads and shows a regular vb form. The "destination
page" contains javascript that is supposed to send the browser back to the
original page which has the link the user clicked, but instead the web
browser form displays a "404 File not found" error page. I can't figure out the problem...any ideas??

3 replies

by nikki96

Are you sure the script is looking for the right file? Paths can be relative or absolute. If having problems, set the path to an absolute path (absolute from server home) or to a full url.
So for example if you are looking for test.html which is inyour home dir on the server, set the location to "/test.html" not "test.html". Or to http://myHost.com/test.html or http://www.myHost.com/myDir/test.html.

This discussion is closed to new replies.