CHtmlView question
-
I am using an CHtmlView in my application and was just wondering whether you could do something or not. Is it possible to know when a user clicks on a hyperlink? I'll explain why I wish to do this for a bit more background. The user open's up a record which is an html page generated from a text file that is stored on the local disk. Depending on certain criteria, hyperlinks are built in to this record. Because this page is generated automatically I want to be able to track which hyperlink is clicked on so I can generate the relevant destination page automatically so I don't have to store (potentially) lots of html files on the local disk. Any ideas? Thanks for any help or suggestions in advance, Nick
-
I am using an CHtmlView in my application and was just wondering whether you could do something or not. Is it possible to know when a user clicks on a hyperlink? I'll explain why I wish to do this for a bit more background. The user open's up a record which is an html page generated from a text file that is stored on the local disk. Depending on certain criteria, hyperlinks are built in to this record. Because this page is generated automatically I want to be able to track which hyperlink is clicked on so I can generate the relevant destination page automatically so I don't have to store (potentially) lots of html files on the local disk. Any ideas? Thanks for any help or suggestions in advance, Nick
-
You need to look at the IE4 Event "BeforeNavigate2". Look at the help for this and then work out how to get the code to work for CHtmlView...
yep just found it, cheers anyway :) Nick