Posted on December 10, 2009, 12:31, by stefan, under
coding,
web.
Getting the value of a the currently selected radio button may be done in a couple of ways. This is one approach using YUI 3.
Here is the HTML:
<input type="radio" name="myoptions" value="one"> First
<input type="radio" name="myoptions" value="two"> Second
<input type="radio" name="myoptions" value="three"> Third
Get the currently selected value using only one line of code:
var value = Y.one(‘[name=myoptions]:checked’).get(‘value’);
Unfortunately, this does [...]
Posted on November 16, 2009, 23:21, by stefan, under
coding,
web.
YUI 3 uses modules to group functionality and to only load what is used. This post describes how to create custom modules.
The typical way modules are used is within the use() statement:
YUI().use(‘node’, ‘event’, function(Y) {
// your stuff here
});
In the above example the modules node and event are loaded. Let’s see how [...]
Posted on November 7, 2009, 6:56, by stefan, under
coding,
web.
Using plugins in YUI 3 is a way to add functionality to existing objects in YUI (very much like you would use prototype to augment a function to a normal JavaScript object). Objects in YUI all derive from Y.Base.
Note that this post is about YUI 3 and not YUI 2.
However, the current YUI [...]
Posted on October 18, 2009, 21:55, by stefan, under
coding,
web.
It is clear that IE6 is not going away just yet, at least not for mainstream websites targeting a large (and non-tech) audience. Quite some time and effort is put into making design and functionality work in IE6 which otherwise works perfectly well in more modern browsers. This is inefficient, but just because IE6 support [...]
Posted on February 24, 2009, 16:11, by stefan, under
coding.
Finally I managed to reproduce something that have been annoying me for several months while using NetBeans as my primary JavaScript editor:
Filed as issue #159060.
Update: Fixed in trunk and available in 6.7 M2.