My question is about Javascript. I have a Callback function which receives a Position object on a successful callback.
The problem is that when I try to set the prop
put a console.log(x); just after x=cords to check the value (works on Chrome and FF with FireBug)
do that also just after the call of OnSuccess.
Also don't forget that there is asynchronous code in JS (if you use AJAX to get the position), maybe you just don't receive the answer when you check the value of x