preventing HTML page reload on from submission
I am working on an astronomical application that determines the location of the sun and the resulting shadow lengths and shadow azimuths at different times of the day. I want to eventually deploy this on a mobile phone and as such I am employing the HTML Geolocation API to obtain the latitude and longitude of the device and the time at which the location was requested. With that information I compute the position of the sun and the parameters that I am interested in in a fuction called soalrTimeDetails, which I have tested extensively for correct results – it is not the problem.