Hi,
I have been trying to get a scene changing function to work that also changes some globals within my own javascript and sets the window location hash. However I have been unsuccesful getting it to work. The changeLocation(locId, locName) is defined in the main javascript that is included into the html containing the krpano viewer div. I tried the following:
// also tried all of these without spaces.. should not matter but I am kind of desperate ;P
onclick="js( changeLocation(1, 'foo') );"
onclick="js( changelocation(1, 'foo') );"
onclick="changeLocation(1, 'foo');"
onclick="changelocation(1, 'foo');"
Krpano does find the changeLocation function when not passing arguments, which results in a can't change to undefined scene, ofcourse.
I could swear I got it to work before, but maybe that was just a dream..
Kind regards,
Laurens