From: DEMATTEIS, M. S [AG-Contractor/1000]
<mar...@mo...> - 2003-02-25 16:04:23
|
"this.form" refers to the form property of the SELECT object in the following HTML: <select name="select2" onChange="doChange2(this.form);"> Mark I don't understand what "this.form" is supposed to be. "this" would be a Window object in this case and Window doesn't have a "form" attribute. What am I missing? Disclaimer: I've only visually checked your code - I haven't had time to actually try it yet. DEMATTEIS, MARK S [AG-Contractor/1000] wrote: > I get an error when HtmlSelect.setSelectedAttribute() triggers an onChange > event handler that uses "this.form" syntax to pass a form object to the > handler. I don't see the error when I access form elements in the handler > using "document.myform" syntax. [snipped] -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mbowler@Ga... Fax : (416) 822-0975 | Website: <http://www.GargoyleSoftware.com> |