Welcome To Snipplr


Everyone's Recent Snippets Tagged object



Using an object as a simple switch.
0 1474 posted 14 years ago by 1man
This function will delete and object and mark it for deletion with gc.
0 1658 posted 14 years ago by scottwatkins
1 1872 posted 14 years ago by frederichoule
using prototype to add instance methods to a Class
0 1381 posted 14 years ago by reelfernandes
"Javascript module pattern emulates the concept of classes in such a way that we're able to include both public/private methods and variables inside a single object, thus shielding/namespacing particular parts from the global scope." When inheritanc...
0 1751 posted 14 years ago by coprolit
http://blog.ramonlechuga.com/2010/10/20/checking-object-structure/ The Array
0 1043 posted 14 years ago by ramonlechuga
0 1076 posted 14 years ago by loric
Simple ajax object for creating ajax calls. Why use SimpleAjax? - Very small, only 2kb minified - Make a asynchrone or synchrone ajax call ( AJAX / SJAX ) - Use quick methods get() and post() for GET and POST calls - Use load() method for...
0 1105 posted 14 years ago by freelancephp
I wanted to pass a form submission (array) as a JSON object to another function. Some form field were created with JS, to identify them their names have been concatenated with unique IDs, etc. In order to access values of that JSON obj I needed to...
1 1607 posted 14 years ago by iroybot
I wanted to pass a form submission (array) as a JSON object to another function. Some form field were created with JS, to identify them their names have been concatenated with unique IDs, etc. In order to access values of that JSON obj I needed to...
0 1485 posted 14 years ago by iroybot
This function returns a new instance of the class it receives.
2 1679 posted 14 years ago by JaaQ
Template for a Object Literal Architecture in javascript, in this case jQuery
0 1096 posted 14 years ago by athanassiadis
Here is an example of a sound that is in a library with the class field set to MySound.
0 2237 posted 14 years ago by adrianparr
Credit for this goes to Terry Paton
3 1424 posted 14 years ago by adrianparr
see http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/statements.html?filter_flex=4.1&filter_flashplayer=10.1&filter_air=2#for..in for details
1 2154 posted 14 years ago by martin9999uk
Feel free to use this class however you'd like
0 1452 posted 14 years ago by jschilling
Parsing an RSS date/time value (as a string) into a date/time object in ColdFusion. And more additional text.
0 3599 posted 14 years ago by parkerkrhoyt
This function automates the creation of the <OPTION>s of a <SELECT> element. It's ideal for your AJAX apps when you create display elements using Javascript It accepts to different kind of arrays: An array of key:values… var arrDirs = {...
0 1167 posted 14 years ago by nomada
Useful when used with the google map directions function http://snipplr.com/view/15530/php-create-google-map-directions-link/
0 1443 posted 14 years ago by iloveitaly
This method is easy to write, but not very efficient, as you can imagine.
2 2348 posted 14 years ago by dyteq
0 1391 posted 15 years ago by rumremix
This code will allow you to embed flash on websites and those sites will validate on w3c validator. Unfortunately, sloppy developers don't usually care about validation. :/
1 2634 posted 15 years ago by trusktr