problem with 2 xml files

  • http://360concept.ro/
    i have a xml that contains the plugins like butons map , info ,little planet and all the things i need and another 2 xml's which containes 2 different panos.the problem is that when i start the first xml , 1.xml, the event "onstart" executes correctly but the same event on 2.xml doesn't do anything.

    sample from include.xml


    sample from 1.xml

    Quote


    <krpano version="1.0.8"onstart="action(starthelp);action(showmap)">


    sample from 2.xml

    Quote


    <krpano version="1.0.8"onstart="action(starthelp);action(hidemap)">


    just click fullscreen, click on the arrow to go to the next pano, and try to click again on the button to switch to normal screen
    http://360concept.ro/panorame/olane…360concept.html

    Edited once, last by booghy08 (February 25, 2010 at 10:47 PM).

  • The onstart action is activated for the first pano only. Subsequent panos which are loaded with the loadpano command will not execute the onstart action.

    Try putting the hidemap action in onxmlcomplete event in 2.xml.

    Code
    <events onxmlcomplete="action(hidemap);"
    
    
    	        />


    steve

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!