Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged c



1 ... 38 39 40 41 42 ... 65
0 1180 posted 15 years ago by kcmr
Piece of cake and easy to use
0 1426 posted 15 years ago by shapeshifta
Pretty straight forward. Replace 'PLUGIN_NAME' with the name of your plugin, add your code in the appropriate places, test and deploy. Should be pretty easy to use, I commented it heavily.
1 1160 posted 15 years ago by mdrisser
A browser friendly way to trigger an event on an element. This is just a simple snippet which doesn\'t really explain the detailed contents of an event object, but it gives an idea of the differences between specific browsers. This function will fire...
0 1713 posted 15 years ago by bryanlyman
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 7292 posted 15 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 1612 posted 15 years ago by ginoplusio
This script displays the current date inside a form via 3 prefilled drop down menus (day, month, year). The visitor can then specify a different date if he/she wants. You can have multiple drop down dates within the same form as well.
0 1380 posted 15 years ago by kanampo
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 1978 posted 15 years ago by ginoplusio
0 1147 posted 16 years ago by smashu
0 1428 posted 16 years ago by sveggiani
prop(obj); //usually use "$(str).appendTo(''#ul")
0 1027 posted 16 years ago by anobre
from this page: http://dreaminginjavascript.wordpress.com/2008/08/22/eliminating-duplicates/
0 1496 posted 16 years ago by keith
url: http://www.example.com/?foo=bar usage: $_GET['foo'] // 'bar'
0 1089 posted 16 years ago by nate63179
1 3666 posted 16 years ago by ozke
0 1112 posted 16 years ago by bionickid
Adds a browser and operating system class to your HTML Tag.
1 1499 posted 16 years ago by smoothdzion
2 1233 posted 16 years ago by fackz
Let you fire click events on any html element.
1 1962 posted 16 years ago by ginoplusio
1 ... 38 39 40 41 42 ... 65