Welcome To Snipplr


Everyone's Recent Snippets Tagged class



Everything works as expected for the setTimeout() function until you try to call a method inside your ‘class’ (there are no real classes in JavaScript). Something like this won’t work: setTimeout(this.methodToCall, time); Passing a string r...
0 2069 posted 16 years ago by eden159
0 1440 posted 17 years ago by iTony
very easy to use pagination class, see website for comments
1 2318 posted 17 years ago by localhorst
1 1172 posted 17 years ago by frietkot
A simple countDown class in Javascript:
1 1478 posted 17 years ago by gfazioli
1 1573 posted 17 years ago by DaveChild
This is a simple javascript snippet that will allow you to specify a particular class to a group of checkboxes and then select them all at once when you click the master checkbox. This came in very handy for a store inventory script when I needed to...
0 1634 posted 17 years ago by aristoworks
0 1388 posted 17 years ago by xuanyan
1 1525 posted 17 years ago by wizard04
0 1577 posted 17 years ago by stavelin
Gravatar link generator class
0 1042 posted 17 years ago by xuanyan
Test harness for an implementation of the Luhn algorithm that checks the validity of a credit card number.
0 1776 posted 17 years ago by Uzbekjon
How to create a basic class in AS3 and extend it if needed.
3 1862 posted 17 years ago by 1man
http://us.php.net/manual/en/language.oop5.autoload.php#82614
2 1448 posted 17 years ago by luizlopes
0 1281 posted 17 years ago by JustinCrossman
I deleted the old one by accident trying to edit it.
9 3037 posted 17 years ago by mattkenefick
0 1157 posted 17 years ago by Meestercor
Usage coming soon.
6 1786 posted 17 years ago by mattkenefick
Paging class. Details on use to come later.
8 1785 posted 17 years ago by mattkenefick
This is a version of Textile that only accepts paragraps, bold, italics, links, and images. Enjoy.
1 1403 posted 17 years ago by evanwalsh
This bit of code allows you to turn code that looks like this: x = {'foo':1, 'bar':2 } x['foo'] = 3 Into this: x = dictclass( {'foo':1, 'bar':2 } ) x.foo = 3
2 1473 posted 17 years ago by kangell
Note: most of these will be available to the shell and Rails' console too.
2 1618 posted 17 years ago by cczona
1 1249 posted 17 years ago by Cory