Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged javascript



1 ... 18 19 20 21 22 ... 33
Passing values between ASP.NET and JavaScript code is messy...
0 1080 posted 15 years ago by streamt
Many times we face situation like when we need to access the code behind variables from javascript as well as accessing javascript variable from code behind. I can remember a practical scenario in my previous project. The requirement was to dra...
0 1311 posted 15 years ago by streamt
0 813 posted 15 years ago by desmond54
default.aspx?id=5 queryString('id') will return 5 Also this will convert to lower case. IIS / ASP.net is not case sensitive so my function isn't either.
0 779 posted 15 years ago by derekholmes
listsEqual(["1","2"], ["1","2"]) is true;
0 1073 posted 15 years ago by prudnikov
0 1067 posted 15 years ago by arthipesa
Load swfobject from google & embed dynamically
2 1205 posted 15 years ago by jcprovideo
0 979 posted 15 years ago by wbednarski
An implementation of class inheritance in JavaScript.
0 1010 posted 15 years ago by wizard04
prevent errors on non-firebug browsers
2 996 posted 15 years ago by wbednarski
Run in the FireBug console, and copy the output. An odd class is included for row striping, and the number of items can be controlled via the for loop.
1 1149 posted 15 years ago by Jamie
Looked for a simple, efficient cross-fading script that does it properly without fading to the background color. This script uses z-indexes to prevent the background from ever showing, creating a smooth fade.
0 923 posted 15 years ago by relaxasaurus
async loading
0 928 posted 15 years ago by peterbelsky
1 1046 posted 15 years ago by iaian7
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 3496 posted 15 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 1362 posted 15 years ago by cardiffblogger
remove and item or items from array
0 797 posted 15 years ago by edektor
pads a string "2".pad(2, "0"); //02
0 674 posted 15 years ago by edektor
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 1502 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 6653 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 1398 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 1193 posted 15 years ago by kanampo
1 ... 18 19 20 21 22 ... 33