cancel
Showing results for 
Search instead for 
Did you mean: 

Launch a URL in a new tab using script

Former Member
0 Kudos

I need to launch a URL in a browser using toolbar script.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member190023
Contributor
0 Kudos

Hello Pawan,

Unfortunately that is not technically possible. Because the scripts (including toolbar) are executed server-side, not client-side.

The only option to launch a URL from Sourcing app is to have user manually click on a generated link on the document.

Regards,

Bogdan Toma

Former Member
0 Kudos

Hi Bogdan,

Thanks for your input. Can you let me know if its possible to deploy the JAR file to the server which accepts a URL as a parameter and launch the URL.

And when we call the JAR file code from the toolbar script, will it launch a URL.

Regards,

Pawan Tibrewal

former_member190023
Contributor
0 Kudos

Hi,

Again, that will not work.

Given the fact that scripts run server-side, regardless of where the code is (in script or custom jar), actions will still be executed server-side.

The opening of a url link requires either:

- user action (click on link)

- callback class build-into the application (this cannot be changed/enhanced because it's part of the core app)

Even if you try using java.awt.Desktop to open a new browser window, you will see that it will be opened on the app server not the user's computer.

Can you share more details on the business requirement? There should be a good alternative for this.

Bogdan