You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

1

Sunday, March 13th 2011, 2:36pm

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*

Source code

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

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Sunday, March 13th 2011, 3:44pm

_self to open a new email window.

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

3

Sunday, March 13th 2011, 5:57pm

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).

Source code

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

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

Thanks.

Steph
Steph

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

4

Sunday, March 13th 2011, 6:54pm

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

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

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

5

Monday, March 14th 2011, 12:03am

Thanks again VN.

It sill not working.

Source code

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

Sage

Posts: 3,281

Location: Netherlands

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

  • Send private message

6

Monday, March 14th 2011, 2:50am

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*
http://www.virtualtuur.com
Skype:studiotuur

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

7

Thursday, March 17th 2011, 1:17pm

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

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

8

Thursday, March 17th 2011, 2:36pm

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.

Source code

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

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

9

Thursday, March 17th 2011, 2:46pm

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

Saturday, March 19th 2011, 12:21pm

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

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

11

Monday, March 21st 2011, 11:06am

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

Similar threads