Quantcast
Channel: Rico's Tech Memo » javascript
Browsing latest articles
Browse All 2 View Live

Image may be NSFW.
Clik here to view.

Javascript: zero padding numbers

There are many ways to accomplish this in js but the following is the one I found to be the best: Let’s say you need to pad a number with leading zeros so the total digits of the number will be 5,...

View Article


Image may be NSFW.
Clik here to view.

jQuery 1.4.2 upgrade issue when doing json ajax calls

The format requirement for ‘json’ dataType has changed slightly in the new jQuery 1.4.2: Double quotation marks are now a must (for both keys and values) to make ajax calls when specifying dataType:...

View Article

Browsing latest articles
Browse All 2 View Live