Round-up: IE6 radio bug; updated Dropdown...
First up, thanks to Gerard Okono, who brought to my attention a bug in IE 6 and 7 whereby radio buttons inserted after the DOM has loaded are apparently uncheckable.
Domscripter, my handy DOM-scripting time-saver, has therefore undergone a fudge to get round this problem, involving using a click event to force the clicked radio button to be checked, at the same time unchecking any previously-checked sibling of the same radio family. See the full fudge here.
Secondly, Dropdown has undergone a bit of a revamp. It now accepts more parameters and you have the option of breaking the links in the drop-down into columns - handy for drop-downs with lots of links. Head over here for full info.
Currently Dropdown is a navigation tool designed for aps, but I'm going to tweak it to be usable in forms, too. Stay posted...
post a commentMSThis - simulate W3C events in IE
Just posted a script I wrote which aims to tackle the age-old problem of IE registering events on Window rather than on the event trigger element.
This has long caused Javascript developers headaches since it means that, in event callbacks, the 'this' keyword does not point to the trigger element like it does in the W3C standard.
MSThis rectifies that, simulating W3C event-handling in IE. It works by storing an event handler on an element, then firing them as methods of it. Frameworks like jQuery probably do something similar to harmonise W3C vs. MS event implementations.
Head over here to download, get usage info or view a demo.
post a commentHello, world
Phew, so here we are. I finally launched. Welcome to my site, primarily a vehicle to promote and share the growing array of Javascript work and other scripts I write in my capacity as web developer in Hampshire.
Although I've historically been a back-end developer, my interest is more with JS/jQuery/AJAX. So that's what I'll be posting, though expect some sprinklings of PHP/MySQL too.
echo "hello, world!";
All my stuff is written with integration and customisation in mind right from the off; how often do you find a script you think solves a problem you have, only to find it doesn't quite work how you want - or at all?
I'll shortly be loading up the site with recent scripts, including a cross-browser curvey corners script (the existing curvey corners jQuery plugin has some quirks...), a fix for the age-old issue of IE running events on Window, not on the trigger element, and more...
post a comment