Go to segment using Javascript in Web Browser Component

Hello All, 

I use a custom plug-in to provide functionality for my users including a Web Browser component that connects to WorldServer to run various servlets for the user. This plug-in has been working well for a couple of years now. The plug-in is built in Visual Studio with C#.

One specific function that I have for my use case is the ability to click on a segment number (from an automated servlet that runs in the Web Browser component) and have Trados move the cursor to the designated segment. This is done using a Javascript function as follows:

function goSegment(number) {

window.location = trados/goSegment + number.toString();

}

This function works in Trados Studio 2017 version 6278, but no later versions seem to support this.

Does anyone know if there is an updated way to do this? I am unable to upgrade Studio without this resolved and currently when users accidentally upgrade their version, I have to uninstall and reinstall 2017 version 6278 to get the functionality back.

Thanks for any help you can give.

Best regards,

Adrian

Parents Reply Children
No Data