From: Foskett, Mike Subject: RE: [WSG] JS patterns > Solution: > Instead of adding an onclick to a heading, try adding a > link to the heading then put the onclick on that. > Use the id of the hidden div as the link href and you're > done. > Best practice observed and everyone's happy.
I agree entirely. There seems to be many developers discovering the joys of these JavaScript frameworks, but forgetting that we have a responsibility to use them wisely. With great power comes great responsibility, or something. I put together a little script to act as a "bridge" between HTML and the prototype JavaScript library called Performer [1]. It allows you to use JavaScript effects (hide and show elements, do AJAX calls, limit textbox input length etc) with nothing more than CSS classes and standard element attributes (rel and rev, mainly). It's also meant to be keyboard-accessible, but more work is needed to get that perfect (any help will be greatly appreciated). Despite this being quite an early version (currently 0.4 - please report any bugs!) I'm also trying to get a jQuery and mootools version developed. If this helps developers to use JavaScript in an accessible way then some good will come of it. Chris [1] http://performerjs.org This message has been scanned for malware by SurfControl plc. www.surfcontrol.com ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************
