2009
Dynamically Created Radio Buttons - Another IE Gotcha
by astrochoupeAs soon as I think I have it all worked out I bump into another oddity between Firefox and IE and handling the DOM. Specifically adding a radio button (or set of them) dynamically.
My initial javascript went something like this:
# var rdo = document.createElement('input');
# rdo.type = 'radio';
# rdo.id = 'someUniqueID';
# rdo.name = 'myRadio';
# rdo.value = 1;
#
# myDocumentsBody.appendChild(rdo);
This almost worked perfectly. The input was added, it was a radio button, but it was totally unselectable. I could select it via javascript but the normal "click" event didn't cause the radio button to assume the "selected" state in IE? What gives?
2007
2006
Embedded Flash MP3 Player
by chilkatJavascript to convert HTML .mp3 links into embedded Flash MP3 players (button with start/stop)
1
(7 marks)