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 2648 posted 14 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 761 posted 14 years ago by cardiffblogger
remove and item or items from array
0 436 posted 14 years ago by edektor
pads a string "2".pad(2, "0"); //02
0 313 posted 14 years ago by edektor
Basic skeleton for a plugin. Contains an example to show where code needs to go.
2 537 posted 14 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 956 posted 14 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 815 posted 14 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 780 posted 14 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 5538 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 730 posted 14 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 696 posted 14 years ago by kanampo
0 514 posted 14 years ago by Wiederkehr
from this page: http://dreaminginjavascript.wordpress.com/2008/08/22/eliminating-duplicates/
0 736 posted 14 years ago by keith
$('.fadein').slideShow(300);
1 618 posted 14 years ago by luizlopes
url: http://www.example.com/?foo=bar usage: $_GET['foo'] // 'bar'
0 496 posted 14 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 640 posted 14 years ago by lukaz
1 429 posted 14 years ago by bionickid
Let you fire click events on any html element.
1 970 posted 14 years ago by ginoplusio
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 630 posted 14 years ago by loucypher
1 ... 27 28 29 30 31 ... 46