x


Application.OpenURL (); on webplayer to open in a new tab or "_blank"

Hi,

Within web player, the OpenUrl() is sadly lacking the option to define the Target so that we can open a new tab or a new page instead of replacing the content.

Is there a way to do that straight or should I implement this via Application.ExternalCall and write a litle function in javascript?

bye,

Jean

more ▼

asked Nov 02 '10 at 08:15 AM

Jean Fabre gravatar image

Jean Fabre
3.1k 68 75 103

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

There is no built-in support for this, so yes, you need to implement this using Application.ExternalCall.

more ▼

answered Nov 02 '10 at 08:48 AM

jonas echterhoff gravatar image

jonas echterhoff ♦♦
9.8k 7 23 104

here is what I use then:

Application.ExternalEval("window.open('http://your http://site.com','Window title')");

then you don't need any javascript function in your page for that, also setting the window title will prevent opening several time the same page if the user clicks several times.

Nov 02 '10 at 11:21 AM Jean Fabre

Works great for me with ExternaEval :) thanks!

May 14 '11 at 05:23 PM ruben_hiet
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x811
x94
x53

asked: Nov 02 '10 at 08:15 AM

Seen: 4434 times

Last Updated: Nov 02 '10 at 08:15 AM