You are not logged in.

andrew22222

Intermediate

  • "andrew22222" started this thread

Posts: 341

Location: Australia

  • Send private message

1

Sunday, November 1st 2009, 9:22pm

Combobox to load pano and populate iframe?

Hi,

I have a html page layout with the viewer containing the nav buttons and combobox on the left and separate on the right an iframe. The combobox loads the images fine and each image has it's own xml file. What I would like to do is to populate the iframe (270px X 375px) on the right with information (Aircraft Specs) that relates to the aircraft image that is currently being displayed but to have the process somehow included into the combobox. This way choosing an aircraft would also load the specs at the same time.

The specs would be on a html page so that the owners can update it in the future and not rely on me making adjustments to plugin image which is what i would have originally used.

Here's the combobox code below

Source code

1
2
3
4
5
6
7
8
9
10
11
12
<action name="combobox:Cessna 152 Exterior">
    	loadpano(01.xml,null,MERGE,BLEND(1));
	</action> 
   		 <action name="combobox:Cessna 152 Interior">
    	loadpano(02.xml,null,MERGE,BLEND(1));
	</action>  
   		 <action name="combobox:Cessna 172 Interior">
    	loadpano(03.xml,null,MERGE,BLEND(1));
	</action> 
    	<action name="combobox:Flight Simulator">
     loadpano(04.xml,null,MERGE,BLEND(1));
	</action> 


Look forward to any ideas please if anyone has the time.

many thanks,

Andrew

andrew22222

Intermediate

  • "andrew22222" started this thread

Posts: 341

Location: Australia

  • Send private message

2

Wednesday, November 4th 2009, 11:36pm

*sad*

3

Monday, November 9th 2009, 4:15pm

Hi,

when you want to modify an html iframe, the only way would be via javascript,
e.g. call a javascript from krpano that makes that...

xml:
<action name="combobox:Cessna 152 Interior">
js( updateiframe() );
loadpano(02.xml,null,MERGE,BLEND(1));
</action>

html/js:

Source code

1
2
3
4
function updateiframe()
{
  ... 
}


best regards,
Klaus