I'm trying to pass the current frame into a loadpano call within Javascript and am not sure what I am doing wrong. My guess is my syntax. Any suggestions?
Thanks!
This is the trigger:
Code
<td><center><img src="preview/10.png" width="65" height="65" onclick="getframe();loadobject('10.xml');" /><br>10.xml</center></td>
This is the function that get's the current frame number (which I have tested by getting a value in a HTML text field.
Code
function getframe()
{
var frame = Number( viewer().get("image.frame") );
document.getElementById("frame").innerHTML = frame;
}
This does not work, meaning the image.frame parameter is not feeding my Javascript frame variable from the getframe() function: