Steve,
Steve Garman wrote:
In the HTMLViewer.CancelLoad event, examine the parameter URL to see
whether the user has clicked a URL you want to redirect.
Do your magic including calling me.LoadPage
Then
Return True
so that the page that was clicked on is not loaded.
I have an example, written to demonstrate downloading clicked files at
<http://rb.sgarman.net/browser/htmlDEMO.rbp>
which you might like to look at and modify the CancelLoad event.
I've got my program (earlier version called NTGreek2.zip) "working" (see
NTGreek3.zip at http://traver.org/traverrb/), but I don't understand why
my version works, because I have included no Boolean return value for
the function. (This is a switch for me, because I'm usually posting
notes here saying, "I don't understand why this doesn't work" <grin>.)
It hasn't been tested on a Mac or Linux system, of course, so it may or
may not work on those two platforms. At any rate, I did learn that
CancelClose was the place to put the code to display a page other than
the one that would have been displayed. And I found your example
program to be a ingenious application of how to "make a switch" of HTML
code.
Warm regards,
Barry Traver
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>