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, November 17th 2008, 1:40pm

get attribute of data node

Hi can i put mine attributes of a data node an recive it by get ?
thankns.

2

Tuesday, November 18th 2008, 7:58am

Hi,

the "data" and "action" node are special nodes,
they are used to store data that will not be parsed,
access the content of this nodes with "data[name].content" or "action[name].content"

e.g.

xml:

Source code

1
2
3
4
5
<data name="myhtmldata">
<html>
<p>hello data</p>
</html>
</data>


as3:

Source code

1
var myhtmldata:string = krpano.get("data[myhtmldata].content");


best regards,
Klaus

Similar threads