I have an app that determines the browser latitude and longitude (geolocation - html5) and I stored inside 2 global variables before even starting the sencha application code.
Now I have a script on my server that fetches the lat/long from the proxy call (jsonp) where I pass url as my script url, extraParams as lat,lon. My query is if I pass something like below, it works fine, I'm able to retrieve the JSON data:
but If i want to use the global variables that I have already used to store the browser latlong it doesn't work.
What is the error in the following code?
Kindly help. I wanna be dynamic!