[thelist] PPK's usable forms script
Demers, Scott
scott.demers at cudenver.edu
Fri Jul 21 14:38:21 CDT 2006
Hi, all -
I've been reviewing Peter-Paul Koch's script for manipulating forms with
the DOM:
http://www.quirksmode.org/dom/domform.html
In a companion article
<http://www.digital-web.com/articles/forms_usability_and_the_w3c_dom/#us
ing> , Peter-Paul says that this method is superior to the typical DHTML
method of manipulating the "display" style. . Yet, what his script
ultimately does is replace all form elements that need to be hidden with
a cloned element that has the style "diplay:none", whilst moving all of
the original elements to a "waiting room" ( a hidden table at the bottom
of the page). Now maybe it's because I'm relatively new to DOM
scripting, or maybe I'm just dense, but this seems to me a convoluted
way of doing exactly what he says he trying to avoid. Why not just use
DHTML? Replacing an element with a clone that has "diplay:none" seems
unnecessary. All I want is a robust set of functions that remove/replace
form elements dynamically using all the best ECMA/DOM practices. Any
thoughts?.
Cheers,
Scott DeMers
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list