Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 27 28 29 30 31 ... 46
Easily grabs email addresses from a bulk text (CSV and/or some other email address-filled list/db). Example #2 takes the input (bulk text) from textarea #input and puts the clean emails in the textarea #extractedemails.
1 4261 posted 16 years ago by world_eggplant
If you wish to set an ASyncPostBackTrigger in ScriptManager for AJAX.NET, using ASyncPostBackTrigger="xxx" causes Firefox, Chrome, Safari, etc. to timeout on partial page postback, using this javascript to set the ASyncPostBackTrigger (instead of the...
0 1911 posted 16 years ago by cardiffblogger
remove and item or items from array
0 1141 posted 16 years ago by edektor
pads a string "2".pad(2, "0"); //02
0 977 posted 16 years ago by edektor
Basic skeleton for a plugin. Contains an example to show where code needs to go.
2 1396 posted 16 years ago by ira
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 2043 posted 16 years ago by bryanlyman
I used to directly inject javascript and CSS into my HEAD elements just like you see in all of the tutorials online and in books. Recently I decided to try a different approach, and I feel this is more in keeping with the ruby and rails "declaration"...
0 2001 posted 16 years ago by sgtrock
I used to directly inject javascript and CSS into my HEAD elements just like you see in all of the tutorials online and in books. Recently I decided to try a different approach, and I feel this is more in keeping with the ruby and rails "declaration"...
0 1928 posted 16 years ago by sgtrock
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 7844 posted 16 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 1934 posted 16 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 1697 posted 16 years ago by kanampo
0 1397 posted 16 years ago by Wiederkehr
from this page: http://dreaminginjavascript.wordpress.com/2008/08/22/eliminating-duplicates/
0 1844 posted 16 years ago by keith
$('.fadein').slideShow(300);
1 1735 posted 16 years ago by luizlopes
url: http://www.example.com/?foo=bar usage: $_GET['foo'] // 'bar'
0 1365 posted 16 years ago by nate63179
I found the tablesorter - jQuery plugin cool and easy to-be implemented. Plugin is written by Christian Bach and my snippet uses tablesorter version 2.0.3. Images are stored on my server as well as inlcuded .js files in example directory. Project's s...
1 1597 posted 16 years ago by lukaz
1 1209 posted 16 years ago by bionickid
0 1622 posted 16 years ago by yisreldov
Let you fire click events on any html element.
1 2301 posted 16 years ago by ginoplusio
0 1584 posted 16 years ago by rccc
A short photo id is a base58 conversion of the photo id. Base58 is like base62 [0-9a-zA-Z] with some characters removed to make it less confusing when printed. (namely 0, O, I, and l). So that leaves an alphabet of: 123456789abcdefghijkmnopqrstuvw...
0 1897 posted 16 years ago by loucypher
1 ... 27 28 29 30 31 ... 46