You are not logged in.

jeromebg

Professional

  • "jeromebg" started this thread

Posts: 1,120

Location: Angers - France

Occupation: 360 experiences creator

  • Send private message

1

Monday, January 16th 2012, 6:07pm

Combobox and javascript onclick

Hi, it looks that combobox doesn't call js function onclick ?

Here is my code :

Source code

1
2
3
4
5
6
7
<plugin name="share" url="%SWFPATH%/skin/icons/share.png" zorder="2" align="bottomleft" x="10" y="7" keep="true" onclick="plugin[combobox].openList();"/>
<plugin name="combobox" url="%SWFPATH%/plugins/combobox.swf" alturl="%SWFPATH%/plugins/combobox.js" keep="true" native="false" visible="false" parent="share" >
    <item name="item1" caption="Partager sur Facebook" onclick="js(add_to_facebook());" />
    <item name="item2" caption="Partager sur Tweeter" onclick="js(add_to_twitter());" />
    <item name="item3" caption="Partager sur Google+" onclick="js(add_to_googleplus());" />
	<item name="item4" caption="Envoyer par email" onclick="js(send_by_email());" />
</plugin>


When clicking on any items it just don't do anything...
I tried my js functions calling the js with the "share" plugin onclick and it works...

Is there a solution ?

For example go to http://www.360images.fr/360/bretagne/gouffre.html with an iphone or ipad...
Many thanx !

This post has been edited 1 times, last edit by "jeromebg" (Jan 17th 2012, 9:48am)


2

Wednesday, January 18th 2012, 11:36am

Hi,

this has nothing to do with krpano,

you were using 'window.open' in your html file to open new browser windows,
but the iPhone/iPad browser will block such 'popup' windows by default,

change the Safari popup-blocker setting and they will work:


best regards,
Klaus

jeromebg

Professional

  • "jeromebg" started this thread

Posts: 1,120

Location: Angers - France

Occupation: 360 experiences creator

  • Send private message

3

Wednesday, January 18th 2012, 1:48pm

Ok, you're right the browser block the popup; but that's very strange becose if I call the same js function with a plugin else than combobox it works, it's not blocked by the browser...
you can have a look on the same panorama : http://www.360images.fr/360/bretagne/gouffre.html

Why is there a difference between combobox onclick behaviour and other plugins ?

Thanx !