Hey, started playing around in javascript again, but It's difficult. I'm trying to limit myself to methods that work in both ie AND firefox, without having to check to versions and write the same thing twice. Real lack of editors out there it seems for js. Ah well. Just doing this to get back into the swing but i've encountered one annoyance - well several.
onclick for buttons doesnt work in firefox, I have to use a return
onclick="recompute(); return false;"
then i found out my radio buttons can't be read normally
Code:
if (corn[0].checked){
ulr=document.getElementById("vred").value;
ulg=document.getElementById("vgrn").value;
ulb=document.getElementById("vblu").value;
}
Using ie it works, using firefox, I get "corn not defined" using the javascript console. Anyone know how i'm suppossed to access a radio button's value in firefox js?
http://beomagi.ath.cx/colorpicker.html