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 1776 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 844 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 1191 posted 14 years ago by chrisaiv
/*Coded by Alessio Delmonti - www.tecnocrazia.com*/
0 771 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 612 posted 14 years ago by iancrowther
0 703 posted 14 years ago by dharmamike
0 803 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 869 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 1018 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 963 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 1237 posted 14 years ago by Meander365
1 720 posted 14 years ago by ionutzp
seen at Eric Miraglia
2 818 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 898 posted 14 years ago by cwd
Transform a color given in hex to RGB. An optional opacity argument also enables RBGA.
0 946 posted 14 years ago by madr
Allow events to bubble up the DOM to overseeing handlers.
2 1026 posted 14 years ago by Meander365
0 708 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 789 posted 14 years ago by dmertl
1 784 posted 14 years ago by goo
More info on SO: http://stackoverflow.com/questions/4061489/jquery-duplicate-field-input-text-in-real-time
1 1153 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 1759 posted 14 years ago by claudiowebdesign
1 ... 16 17 18 19 20 ... 46