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, October 10th 2011, 9:02pm

selectIdItem for combobox.js

Hi, iy looks that selectIdItem doesn't work with the combobox.js version (on ipad and iphone)
Am I right or is my code wrong ?

The page to look with an ipad or iphone : http://saint-jean-de-monts.org/360images/foret.html
the combobox show the first item instead of the 4th item

here is my code in the xml file of the pano :

Source code

1
<events onxmlcomplete="plugin[cb].selectIdItem(item4);"/>


and the combobox is the skin mobile file :

Source code

1
2
3
4
5
6
<plugin name="cb" url="%SWFPATH%/plugins/combobox.swf" alturl="%SWFPATH%/plugins/combobox.js" align="leftbottom" x="10" y="10" zorder="2" keep="true" >
<item name="item1" caption="Les plages" onclick="loadpano(estacade_jour.xml, null, MERGE, BLEND(1));"/>
<item name="item2" caption="Centre ville" onclick="loadpano(centre_jour.xml, null, MERGE, BLEND(1));"/>
<item name="item3" caption="Odysséa" onclick="loadpano(odyssea_jour.xml, null, MERGE, BLEND(1));"/>
<item name="item4" caption="La Forêt" onclick="loadpano(foret.xml, null, MERGE, BLEND(1));"/>
<item name="item5" caption="Demoiselles" onclick="loadpano(demoiselles.xml, null, MERGE, BLEND(1));"/></plugin>


thanx for looking !

jeromebg

Professional

  • "jeromebg" started this thread

Posts: 1,120

Location: Angers - France

Occupation: 360 experiences creator

  • Send private message

2

Tuesday, October 11th 2011, 9:46am

It works with onloadcomplete instead of onxmlcomplete...
don't know why but it works !

3

Tuesday, October 11th 2011, 8:32pm

Hi,

Quoted

It works with onloadcomplete instead of onxmlcomplete...
don't know why but it works !
there is no guarantee by default that the plugin it already loaded at the "onxmlcomplete" event,
so when there is a call to selectIdItem but the plugin itself is not loaded the call will fail of course,

either add preload="true" to the plugin to make sure that it will be loaded before any actions starts,
or use the onloaded event of the plugin to make sure that the plugin is already loaded,

best regards,
Klaus

jeromebg

Professional

  • "jeromebg" started this thread

Posts: 1,120

Location: Angers - France

Occupation: 360 experiences creator

  • Send private message

4

Tuesday, October 11th 2011, 8:40pm

Ok it's more clear for me now, thanx klaus !

Similar threads