ginoplusio


Member since 11/07/2008

Website: http://www.barattalo.it

11 snippets

8348 profile views

6 Comment(s) Posted

View their favorites

Profile

Achievement

You have not received any achievements.

ginoplusio's Recent JavaScript Snippets



« Prev 1 Next »
Suppose you have a login form and you want to send the form when user press enter on his keyboard and not only by clicking on the submit button. This can be achieved capturing a specific event when the user is typing. We have to capture the keypress...
1 931 posted 14 years ago by ginoplusio
This function calculates distance with the Haversine formula, this formula assumes that our Earth is spherical, but it isn’t since it’s more like a big orange fruit also compresses at poles. I’ve read that this function has an error about + o â...
3 5489 posted 14 years ago by ginoplusio
When you show the coordinates of a point, it’s sometimes better to show them as degrees and not as deciaml (even if decimal is simpler). Each of the two coordinates can be converted with the same function. In the function call the “tipo” is the...
1 712 posted 14 years ago by ginoplusio
I’ve made a ruler to measure distances on a Google Map V3. The file Ruler.js contains a two function: one to calculate the distance between two points on the map with their position expressed in decimal degrees, and one function that add the ruler....
1 1143 posted 14 years ago by ginoplusio
Let you fire click events on any html element.
1 930 posted 14 years ago by ginoplusio
converts a number "v" to a float number and formats the string it with "d" decimals, used on input type text onblur="parseFloatString(this.value,2);"
0 823 posted 14 years ago by ginoplusio
strip non alphanumerical characters while typing
1 520 posted 15 years ago by ginoplusio
a set of function useful to check data (functions name in italian but easy to translate).
0 816 posted 15 years ago by ginoplusio
sorting a table through javascript
3 831 posted 15 years ago by ginoplusio
« Prev 1 Next »