I've seen document.all and document.forms and occasionally document.formname, but I've only ever really bothered with the W3C stuff myself. From what I gather from Quirksmode, it seems that the mozilla folks decided to drop support for the netscape dom (which provides document.forms and document.namedForm)...
Often when puzzled about what I've managed to screw up, I'll utilize the old standby alert(); to see if for instance alert(document.request_form) is an HTMLFormElement or null or etc... usually this reveals a typo somewhere or some sort of stack/scope fallacy I've made :-D
On Apr 6, 2008, at 9:57 AM, Robert Poland wrote: Thanks Errol,
That will make a useful tool.
Curious that the statement "document.request_form.i_name.value" doesn't get a value.
On Apr 6, 2008, at 7:56 AM, Errol Sayre wrote: function copy_Name() { try { document.request_form.i_name.value = print_name.value; } catch (e) { alert(e); } }
Bob Poland - Fort Collins, CO
|