You are not logged in.

m.conche

Beginner

  • "m.conche" started this thread

Posts: 15

Location: France

  • Send private message

1

Saturday, January 9th 2021, 5:37pm

get scene title in javascript interface

Hi all,
I want to get the title name of the actual scene via the javascript interface. i saw other posts and tried em, but it didn’t worked for me

This code : https://krpano.com/forum/wbb/index.php?p…49028#post49028 didn't worked for me.


Source code

1
2
3
4
5
6
getSceneTitleName();
var krpano = document.getElementById("krpanoSWFObject"); 
function getSceneTitleName(){ 
	 var title= String( krpano.get("scene[get(xml.scene)].title") ); 
	 console.log(title);
};


anyone can help me ?
Thank you

m.conche

Beginner

  • "m.conche" started this thread

Posts: 15

Location: France

  • Send private message

2

Saturday, January 9th 2021, 6:21pm

I solved it, it was only a problem with the call of the function