Javascript – ARGH!
Okay, so ever since the Geek Muse episode where we interviewed the authors of Foundations of Ajax, I’ve been doing some Ajax programming. It’s fun, looks cool, works great in Firefox, but sucks in everything else. Javascript, I hate you.
In the end, this is really bad:
mydiv.style.class = 'blah';
Firefox doesn’t report any error and continues working, Safari shows a ‘parse error’ (but doesn’t know where) and ignores all Javascript calls, as does IE 7, which just reports “Error”. This is what I wanted:
No comments
mydiv.className = 'blah';