10-27-2009 08:07 PM
Your code is wrong. You're calling the alert while the script is executing and passing the return value from the alert to the onLocationUpdate method. Obviously the location.latitude and longitude will be zero when they are evaluated, because refreshLocation hasn't even been called yet.
07-16-2010 02:25 AM
That bit.ly URL is returning error 400 now. Could you post the full code example or the full URL of where your example is hosted? I'm getting 0s for my latitude and longitude, but I'm not sure if it's my device or my code.