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.

Alexey Tkachenko

Professional

  • "Alexey Tkachenko" started this thread

Posts: 737

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

1

Wednesday, October 21st 2015, 11:10am

how do I store array item.count from xml into js?

hi everyone *smile*

I started studying a bit of javascript and first made a small task: store array item.count from the 'test' array into js variable.

Here's what I've tried:

http://vt.most-inform.com/bugs/array/


html here:
http://vt.most-inform.com/bugs/array/index.html

and xml here:

http://vt.most-inform.com/bugs/array/tour.xml

I added 'onready' event to 'embedpano' action inside html. Inside this action I try to get and store two variables = 'itemcount' and 'fov'. Fov works OK, but 'itemcount' alerts 'null'. However 'itemcount' variable in the xml is traced OK.

I am obviously being stupid here, but forgive me that, I've just started learming krpano-js interaction ;-)
Regards,

Alexey

Similar threads