Category Archives: JavaScript

Using Assetic to manage CSS and JS

We’ve been using Assetic for some time and we’re quite happy with the results. Assetic can be used to consolidate your CSS and JS files into fewer files with options to minify (compress) them to minimize the file size and … Continue reading

Posted in CSS, JavaScript, Site Optimization, Web Development | Tagged , , , | Leave a comment

jQuery DataTables – sort by date using timestamp data attribute

DataTables is an awesome “do-it-all” table plugin for jQuery. I was trying to display a locally formatted date but should still be sorted correctly. Current plugins may not work since it the date format uses long date format like “20 … Continue reading

Posted in JavaScript, Web Development | Tagged , , | Leave a comment

Checking/unchecking checkbox doesn’t work in jQuery mobile

I’m using an old school jQuery code to modify elements that has true/false attributes such as checked or selected. This appears to be not working when I tried it on jQuery mobile checkbox. I used a different method instead and … Continue reading

Posted in JavaScript | Tagged , , , | 6 Comments

CKEditor grayed out on jQuery tabs when window is resized

We have jQuery tabs containing CKEditor. Recently I noticed an issue during window resize activities where the editors hidden on tabs are grayed out when you reveal that tab. It turns out that the editor’s main editor window is set … Continue reading

Posted in JavaScript | Tagged , , , | Leave a comment

Bug Fix on World Clock Widgets

A month ago, I have posted about my World Clock widgets. However, I have found out that there is a bug on the implementation especially on the cookie part where the timezone and offset information is saved into a cookie. … Continue reading

Posted in JavaScript | Tagged , , | Leave a comment

Yet Another Base64 Encoder/Decoder

This tool is yet another online, web based, base64 encoder/decoder written in JavaScript. This tool come in handy in times when we needed to either encode or decode base64 string. I have written this tool using various opensource tools. The … Continue reading

Posted in JavaScript | Tagged , , , , , , , | Leave a comment

Yet Another World Clock

I finally completed my so called “World Clock”. The idea was to be able to create a widget to display a clock for different timezones. I used the combination of JavaScript and PHP to achieve the accurate date/time conversion especially … Continue reading

Posted in JavaScript, Web Development | Tagged , , , , , , | Leave a comment

Just Another URL Encoder/Decoder

There are so many online URL encoder/decoder out there, but nothing stops me from creating yet another one and pollute the web (j/k). Anyway, this is just a very simple tool written in JavaScript that can be used to encode/decode … Continue reading

Posted in JavaScript, Web Development | Leave a comment

Setting Session Only Cookie via JavaScript

So you’re pretty good at cookies in PHP, then you suddenly wanted to manage cookies via JavaScript. Few days ago, I got a chance to work on cookies and JavaScript but as usual, our beloved Internet Explorer blocks my way. … Continue reading

Posted in Internet Explorer, JavaScript | Tagged , , | 6 Comments

Showing Date Span – PHP and JavaScript Version

It is common to see date/time span in feeds and on most social networking sites. If you don’t get it, it is the line that says “An hour ago”, or “Yesterday”, or “21 minutes ago” sort of for human friendly … Continue reading

Posted in JavaScript, php | Tagged , , , , , , | Leave a comment