Profile
Achievement
inkdeep's Recent JavaScript Snippets
- All /
« Prev 1 Next »
Namespace to avoid collision with other javascript variable/method names
1
596
posted 14 years ago by inkdeep
This comes in handy when working in big objects and you need to see what's happening on the inside of an instance.
I aliased 'console.log' to 'put' and wrapped it in a try/catch block that throws alerts if no console is available. Less typing - an...
1
553
posted 14 years ago by inkdeep
I use this in addition to the
number_format (http://snipplr.com/view/5945/javascript-numberformat--ported-from-php/)
snippit in SWFUpload to display the size of files a user is preparing to upload.
0
3160
posted 15 years ago by inkdeep
SEE http://json.org/ for PHP JSON Libraries.
grunt knuckle drag brute force ugly escapes for quotes make a php array a json string
Produces trailing commas which some Javascript Librarys can't deal with.*
_*NOOB NOTE [a comma is added at the...
2
890
posted 16 years ago by inkdeep