Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Modifying link targets in TBrowser?
Mon, Oct 5 2015 1:02 PMPermanent Link

PA

Hello!

In a TBrowser I need to be notified when the user clicks on a link and have the possibility to modify the links in the document.

Specifically, relative links should be made absolute, for example:

<a class="myclass" href="item.php?id=1234">Link to somewhere</a>

should become:

<a class="myclass" href="Link" name="www.example.com/item.php?id=1234">Link">www.example.com/item.php?id=1234">Link to somewhere</a>

Is this somehow possible?

Unfortunately, TBrowser does not have a OnBeforeNavigate(..., var AHref: string) event, where the href attribute could be modified.
Mon, Oct 5 2015 2:59 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

PA,

<< In a TBrowser I need to be notified when the user clicks on a link and have the possibility to modify the links in the document. >>

Are you generating the content being shown in the TBrowser ?  If not, then you won't be able to modify it, and if you are, then you should be able to generate it with the proper links.

Tim Young
Elevate Software
www.elevatesoft.com
Image