Calling Multiple Panos via JS

  • Hi All,

    I've written an application where panos are loaded via JS by clicking on the appropriate link . So far so good. However, if I decide to load another pano when one is currently being loaded, the current loading pano does not stop loading.

    I have tried calling stopall and/or breakall, however the original loading pano continues to load.

    Any ideas?

    Many thanks,
    Michael

    function load_pano(id){

    var name2 = vvPanoArray[id][0];
    var xml2 = vvPanoArray[id][1];
    var jpeg = vvPanoArray[id][3];

    root.call("stopall();");
    root.call("breakall();");

    root.call("loadpano("+xml2+".xml,sphere="+location_section+"/"+jpeg+".jpg,MERGE,blend(1));");
    }

Participate now!

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