Programming

Quick tip: careful with the ifChanged event of iCheck

iCheck is probably the best jQuery plugin for styling (or skinning) radio and checkbox inputs. However, there is a difference between the default change event of radio buttons and the ifChanged event of iCheck: the default change event fires when one of the radio buttons of the same named group is selected. At the same time, another radio is unchecked without firing a change event. On the other hand, the ifChanged of iCheck fires for both the just selected radio and the one that was previously selected. So, if you need to call a function using iCheck events, it is better to listen for change and ifClicked events. Just saying!

Continue reading…

Programming

Loading a WordPress sidebar with AJAX 13

In my previous article I wrote a few things about the redesign of this website, which is now responsive. However, fluid design is only one step towards building mobile friendly websites (which was the initial goal of RWD) since the small screen is not the only “problem” of a smartphone. We must also cater for the limited memory (and storage space, both temporary and long term) and the slow CPU that -most of the time- is quite slower than even a cheap netbook. We need to further improve our sites and for starters, I decided to not load the right sidebar at all, if there is no space available for it.

Continue reading…

Programming

HTML5 elements: <OUTPUT>

The <output> is a new element of HTML5 that can be included in a form (<form>) to semantically mark the result of a calculation between other fields of the same form. It is supported by all modern browsers, Firefox 4+, Chrome 10+, Internet Explorer 9+, Safari 5+, Opera 11+ and, with some help from Modernizr, Internet Explorer 8.
Continue reading…