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

Tuesday, October 19th 2010, 9:50pm

getting coordinates

Hi guys

wow, I'm finally sortoff getting this...

Just one question, actually kindoff 2. The actions that I set in my xml file, how do I actually use that? I know it sounds stupid, but do I call it from my html page with java or what? I urgently need to figure out how I can capture the current coordinates of the view and send it via a post to php.



I hope that I will also soon be able to help someone else!



Thanks in advance

2

Wednesday, October 20th 2010, 7:17am

Read up on javascript interface. You can get the details using the javascript interface and send them to the php script using ajax.

3

Wednesday, October 20th 2010, 1:17pm

Thanks srida



I looked at those examples and it did help quite a bit. Just one line of code I'm battling to figure out...what is the view.vlookat frefering to???

Source code

1
var vlookat = Number( krpano().get("view.vlookat") );