Welcome To Snipplr


Everyone's Recent JavaScript Snippets



1 ... 25 26 27 28 29 ... 65
useful if you only want digits as input
0 1256 posted 15 years ago by webstylr
1 1361 posted 15 years ago by ionutzp
seen at Eric Miraglia
2 1530 posted 15 years ago by ionutzp
Code matches querysting data to form feilds on the page based on the feild name. I've added the example querystring to the body of the page. Found at: http://codingforums.com/showthread.php?t=198419 Code by: Old Pedant
0 1560 posted 15 years ago by Carolyne
quick snippet to select all the check boxes on a drupal permissions page. helpful when setting up a role for Admin
0 1635 posted 15 years ago by cwd
2 1159 posted 15 years ago by icywiener
Transform a color given in hex to RGB. An optional opacity argument also enables RBGA.
0 1679 posted 15 years ago by madr
0 1328 posted 15 years ago by aurorius
Slide / scroll to the top of the page.
1 1577 posted 15 years ago by BFTrick
I should've wrote this function a LONGGG time ago. foreach($myArray, function($k, $v){ console.log($k + " :: " + $v); });
3 2085 posted 15 years ago by mattkenefick
Method for setting maximum on JQuery tools rangeinput slider. Add this method to RangeInput $.extend with the other get/set methods.
1 1365 posted 15 years ago by dmertl
This code was re-purposed from Pamela Fox's MapIconMaker v1.1 to work with Google Maps API v3.
1 1749 posted 15 years ago by sandrews_06
This jQuery code should make all external links from the #content div open in a new window.
1 1779 posted 15 years ago by nonsalant
1 1442 posted 15 years ago by goo
When a link is clicked, call up this function. Parameter message = message you want to display after click url = page you want to forward to if the user clicks OK
1 1552 posted 15 years ago by chopbust
All credit goto author. Not me.
0 1306 posted 15 years ago by easy2die
Not sure what I\'d ever use this for as it doesn\'t exactly lend itself to flexibility in the long term, but saving it anyway.
0 2872 posted 15 years ago by stephcode
Display the latest tweets of a user using JavaScript. Not really a recommended way. If Twitter is slow, your site will load slow. I would recommend using my PHP implementation instead. It will not hang your site if Twitter is not working.
1 1470 posted 15 years ago by mloberg
On click event, display a div on mouse coords. Tested on Firefox 3.6.11, chrome 6, internet explorer 6. Based on this source code: http://www.webdeveloper.com/forum/showthread.php?t=92007
0 4519 posted 15 years ago by juanduke
Use Curl to grab the latest versions of jQuery... dev and minified versions.
0 2165 posted 15 years ago by mecha
1 ... 25 26 27 28 29 ... 65