You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, April 25th 2011, 11:30am

about javascript , it's always warn : krpano().call is not a function. help me please , thank you !

<div id="call_id" onclick="moveto('+90','0')">click here</div>
<div id="krpano">
<noscript><table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Javascript not activated<br><br></center></td></tr></table></noscript>
</div>

<script type="text/javascript" src="swfkrpano.js"></script>

<script type="text/javascript">


var so = new SWFObject("krpano.swf", "krpanoSWFObject", "100%", "100%", "9.0.28","#000000");
so.addParam("allowFullScreen","true");
so.addVariable("pano", "pano.xml");
so.useExpressInstall("swfobject/expressinstall.swf");
so.setAttribute('xiRedirectUrl', window.location);
so.write("krpano")




function krpano(){
return document.getElementById("krpanoSWFObject");
}

function moveto(toh, tov){
krpano().call("moveto(" + toh +"," + tov + ")");
}

</script>

*confused*

2

Wednesday, April 27th 2011, 9:01am

Hi,

do you test online or offline/locally?

if offline/locally please see here:
http://krpano.com/docu/localusage/

best regards,
Klaus

3

Wednesday, May 4th 2011, 8:14am

Hi,

do you test online or offline/locally?

if offline/locally please see here:
http://krpano.com/docu/localusage/

best regards,
Klaus
Thank you very much !
but I met another problem ! 

Quoted

Note - when the xml was loaded by the loadpano action and there are additional action commands after the loadpano call, then the onstart event will be skipped!
is any method to solve this problem?

my javascript code is

Source code

1
document.getElementById("krpanoSWFObject").call("loadpano("js_load_xml.xml",null,IGNOREKEEP,BLEND(1))");

and in js_load_xml.xml has the code

Source code

1
<krpano version="1.0.8" onstart="loadscene(scene1,null,MERGE);">

it don't load the scene1 .
Is it any method to load scene1 . thank you !

4

Thursday, May 5th 2011, 11:56am

Hi,

in this case the onstart event should still happen...
or do you have additional calls after the loadpano() call?

if not - you could call loadscene() manually after the loadpano() call,
or you could try calling "onstart()" after the loadpano() call,

best regards,
Klaus