Sie sind nicht angemeldet.

esys

Fortgeschrittener

  • »esys« ist der Autor dieses Themas

Beiträge: 267

Wohnort: Balazé France

Beruf: photographer

  • Nachricht senden

1

Sonntag, 13. März 2011, 14:36

mailto target _blank doesn't work ?!

Hi,

I can't find an issue in my code to open the mailto link in a blank tab. I've tried with and without, _ "" ; , target etc.. It always opens in the same tab. *cry*

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
	<action name="mail">

	openurl("mailto:.....fr", "blank");

	</action>

	openurl("mailto:.....fr", "_blank");

	openurl("mailto:......fr";  "_blank");

	openurl("mailto:......fr,blank");

	openurl("mailto:.....fr", "target(_blank)");



Any suggestion will welcome. *smile*

Thanks.

Steph
Steph

2

Sonntag, 13. März 2011, 15:44

_self to open a new email window.

esys

Fortgeschrittener

  • »esys« ist der Autor dieses Themas

Beiträge: 267

Wohnort: Balazé France

Beruf: photographer

  • Nachricht senden

3

Sonntag, 13. März 2011, 17:57

Thanks VN but it doesn't work.

The original code was given to me with the navigation plugin. And it was already "_self" but it opened in the same window. That 's why i tried "_blank".
Here the code i just tried (on local and on line).

Quellcode

1
openurl(mailto:compmcsardo@tiscalinet.it,_self);

http://www.humanfoto.fr/C/tour.html

Thanks.

Steph
Steph

4

Sonntag, 13. März 2011, 18:54

_self should work. this is what i used to use to open an email link window.

openurl(get(plugin[mail].html),_self);

esys

Fortgeschrittener

  • »esys« ist der Autor dieses Themas

Beiträge: 267

Wohnort: Balazé France

Beruf: photographer

  • Nachricht senden

5

Montag, 14. März 2011, 00:03

Thanks again VN.

It sill not working.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
  <plugin name="mail" url="bandeau.png"
  		  keep="false"
  		  visible="false"
		  html="mailto:info@lesgrandsbuffets.fr"
			/>		

        <action name="mail">

	openurl(get(plugin[mail].html),_self); 

	</action>

Ou bien avec un data:html et <a href="mailto:....fr"></a>

No success.

I still searching. Thanks. *smile*

Steph
Steph

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

6

Montag, 14. März 2011, 02:50

try:


<plugin name="mail" url="bandeau.png"
keep="false"
visible="false"
onclick="mail();"
/>

<action name="mail">

openurl(mailto:info@ilovekrpano.nl,_self);


</action>




hope it helps

Tuur *thumbsup*

esys

Fortgeschrittener

  • »esys« ist der Autor dieses Themas

Beiträge: 267

Wohnort: Balazé France

Beruf: photographer

  • Nachricht senden

7

Donnerstag, 17. März 2011, 13:17

Thanks Tuur, but it was my original code (for the action) and it didn't work.

I remind you that i can't reach the original "plugin" code because it's a swf i bought from a shop, so only the action code could be changed. That's why i had to write the code the way i did on my last post.
May be someone has an example on line to show a mail page opening in an other tab.
I've seen two panos with a contact link and both of them open in the same tab.!

Thanks for your time guys. ;-)
Steph
Steph

8

Donnerstag, 17. März 2011, 14:36

openurl(mailto:compmcsardo@tiscalinet.it,_self);


there is no question is is _self to open a new window. here is the exact action i used to open an email.

Quellcode

1
2
3
4
5
6
7
	<action name="shareviaemail">
		plugin[swfaddress].removeparams();
		plugin[swfaddress].setparams(ath=r(view.hlookat),atv=r(view.vlookat),fov=view.fov);
		set(data[emaillink].content, null);
		txtadd(data[emaillink].content, 'mailto:?subject=Check out this view!&amp;body=This is a link to a scene I really liked inside Virtual Northlands Canal Park Virtual Tour. %%0D %%0A', %1,%%0D %%0A Or check here for a lot more examples http://www.virtualnorthland.com);
		openurl(get(data[emaillink].content),_self);
	</action>

esys

Fortgeschrittener

  • »esys« ist der Autor dieses Themas

Beiträge: 267

Wohnort: Balazé France

Beruf: photographer

  • Nachricht senden

9

Donnerstag, 17. März 2011, 14:46

Hi VN,

I'm sure i can trust you, definetely. I must have an error in my code. I'm gonna check it thoroughly.
I keep your code.

Thanks again.
Steph. ;-)
Steph

10

Samstag, 19. März 2011, 12:21

Hi,

are you testing locally/offline?

in this case you would need to adapt the Flashplayer security settings to get the Javascript/External Interface working,
see here:
http://krpano.com/docu/localusage/

best regards,
Klaus

esys

Fortgeschrittener

  • »esys« ist der Autor dieses Themas

Beiträge: 267

Wohnort: Balazé France

Beruf: photographer

  • Nachricht senden

11

Montag, 21. März 2011, 11:06

Hi Klaus,

Thanks for your suggestion. I test those links and code on line of course. I guess i've a mistake somewhere in my code. I'll check this out very soon. No time for the moment.

Thanks again. ;-)
Steph

Ähnliche Themen