• Wondering if someone can help me with SWFAddress and krpano. I've got the Back & Forward browser buttons to jump to next and previous panos, but a page reload (Ctrl+R or F5) on a deep link address causes the initial pano to load but with the deep link address in the address bar. E.g. I may have followed a hotspot in a pano (scene1) that takes me to another pano (scene2) and the browser address bar correctly shows http://www.site.com/#/scene2 . However, if I reload the page, krpano shows scene1 with the address bar showing http://www.site.com/#/scene2. And, if I paste the URI (http://www.site.com/#/scene2) into the address bar on new tab, the first scene is loaded, not scene2.

    Here are a few snippets of code:

    Pano XML:

    HTML/Javascript:

    The clumsy IF statement is to get the name portion at the end of the URI to account for paths such as http://www.site.com/region2/scene6.

    Interestingly, it works when the alert functions are uncommented, i.e. alert messages are displayed. The javascript console in Firebug reports this error on first load of the page or page reload:

    krpanoswf.call is not a function
    krpanoswf.call("loadscene(scene1)") line 33

    Any suggestions much appreciated.

    cheers,
    Andrew

  • Thanks michel. I wrapped the handleChange function in a test for krpano and that has prevented the krpanoswf.call error; however, it hasn't fixed the problem. It looks like the SWFAddress Change event fires before krpano is ready. I need some way to queue the event or flag that it has fired so that when krpano is ready the loadscene calls can be made. I will experiment with the second option Klaus mentioned in that thread.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!