Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 16 17 18 19 20 ... 46
Simple function that filters out any duplicate items in an array.
7 3107 posted 14 years ago by Nettuts
Since tinyMCe doesn't transfer it's editor contents to the text area until you hit the submit button, and since the autosubmitter doesn't ever hit the submit button TinyMCE boxes never save. IT's a simple fix, just place the code on line 2, at the ve...
0 1096 posted 14 years ago by FatFolderDesigner
I needed a way to talk to Google Calendars. here's how I was able to create a RFC 3339 timestamp
0 1519 posted 14 years ago by chrisaiv
/*Coded by Alessio Delmonti - www.tecnocrazia.com*/
0 1043 posted 14 years ago by Mosaic
this is my way of working out the contents of an object when I don't have access to a debugger like firebug
0 767 posted 14 years ago by iancrowther
0 862 posted 14 years ago by dharmamike
0 1071 posted 14 years ago by geekyjohn
Hello, I have been developing with jQuery for just over a year now, I thought I would share something with you that I have found pretty time saving over the past few months. If you have ever had javascript conflicts due to several different jav...
2 1119 posted 14 years ago by mike-tempest
it parses given string and returns 1st number it encounters ( it will replace comas with dots so floats formatted as 12,345 could be 12.345 ( some countries use that ) ) then u can parse returned value as a number / float / int - do what You need...
0 1309 posted 14 years ago by stryju
Short and sweet, add the following two lines where you want to trigger a javascript function. Just change the javascript denoted in the code by "javascriptFunction()" with whatever you want to call. Also jsut in case make sure you have the allowScrip...
1 1252 posted 14 years ago by StevenW721
This is a cut down example using custom tabs (you can easily add a custom ajax event to load in content - just follow Ben Alman's example).
0 1534 posted 14 years ago by Meander365
1 940 posted 14 years ago by ionutzp
seen at Eric Miraglia
2 1056 posted 14 years ago by ionutzp
quick snippet to select all the check boxes on a drupal permissions page. helpful when setting up a role for Admin
0 1176 posted 14 years ago by cwd
Transform a color given in hex to RGB. An optional opacity argument also enables RBGA.
0 1273 posted 14 years ago by madr
Allow events to bubble up the DOM to overseeing handlers.
2 1250 posted 14 years ago by Meander365
0 942 posted 14 years ago by aurorius
Method for setting maximum on JQuery tools rangeinput slider. Add this method to RangeInput $.extend with the other get/set methods.
1 987 posted 14 years ago by dmertl
1 1008 posted 14 years ago by goo
More info on SO: http://stackoverflow.com/questions/4061489/jquery-duplicate-field-input-text-in-real-time
1 1520 posted 14 years ago by logic-unit
A jQuery plugin that adds the .spiral() method, wich moves an element along an archimedean spiral path.
3 2015 posted 14 years ago by claudiowebdesign
1 ... 16 17 18 19 20 ... 46