adding html-hyperlink "target=", howto ?

General TRichView support forum. Please post your questions here
Post Reply
Stef
Posts: 90
Joined: Mon Aug 29, 2005 9:56 am
Contact:

adding html-hyperlink "target=", howto ?

Post by Stef »

hello Sergey,

Maybe it's a stupid question, but my RVE application is so rock stable, that I didn't touch the code for over a year, and now I lost almost all my knowledge about RVE :-(

I want to add "target=" into my html hyperlinks.
- I can export the string in Onwritehyperlink, using "extras"
- (I think) I can modify the html importer, to extract the "target="

But I don't see the most obvious method to store this string information in RVE. AFAIK there's no special placeholder for this kind of information (I use version 1.9.6 and because it's so stable I don't want to update). As I don't use Hotspots, Controls, I was thinking of using one of these placeholders. Is this a good way to proceed or can you give me a better suggestion ?

thanks,
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can store any information in the item tag. In OnReadHyperlink/OnWriteHyperlink you assign/get information from tag yourself, so information can be stored in tag in any format (without line break characters).
For example, tag string can be
'http://www.google.com | target=_blank'.
You can search for ' | ' in tag string, and use part of text before it as a target, after it as Extras.
Stef
Posts: 90
Joined: Mon Aug 29, 2005 9:56 am
Contact:

Post by Stef »

thanks very much Sergey,

the suggested method is very easy to implement and works like a charm,
great !!!

cheers,
Post Reply