You are not logged in.

Dear visitor, welcome to 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


  • "Alexey Tkachenko" started this thread

Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message


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:

html here:

and xml here:

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 ;-)


Similar threads