You are not logged in.

1

Tuesday, April 12th 2011, 11:44am

How to have a pano in an iframe load a scene in another pano?

I have a floating iframe with a map ( a flat pano with hotspots ) that im trying to do loadscene in the main window pano that is underneath the map.

How do I have the xml from the html in the iframe talk to both the html of the main window and the xml that has all the scenes of the tour?

please help! *wacko*

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Tuesday, April 12th 2011, 2:19pm

Call a JavaScript function from the map pano, which in turn calls the appropriate krpano function, just get the id right
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Wednesday, April 13th 2011, 12:45pm

it seems like that is the problem the id ....

but strange enough it works in mac Safari 5.02 but not in mac firefox 3.6.16 .....

this check box in the iframe (map window):

<input type='checkbox' id='showHideMap' onclick='parent.toggleLayerDisplay("floatframe")' />

toggles the visibility of the map ( a floating iframe over the main pano window"


and this script in the main (parent) html:

<script>
function toggleLayerDisplay(sDivID){
var ndTargetLayer = document.getElementById(sDivID);
if(ndTargetLayer.style.display == 'none'){
ndTargetLayer.style.display = 'block';
}
else{
ndTargetLayer.style.display = 'none';
}
}
</script>


and the Map in the iframe calls (from a hotspot) a javascript accordion menu (in the main html window)

onclick="js(parent.ddaccordion.expandone(menuheaders, 10); return false);"




and this other hotspot opens a pano in the main (parent) pano window:

onclick="js(loadscene(scene_66, null, MERGE, BLEND(1)); setmask(mask_edificio_principal, 0,340,377);)"


all the previous calls work in safari but not in firefox.....

does anybody know why ??? *wacko* *confused*

help! please!

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

4

Wednesday, April 13th 2011, 5:32pm

Looks far too complex to troubleshoot without seeing the project.
Try utilizing krpano trace and firebug and/or developer tools for each browser to check for errors.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour