From: Dave S. <dav...@ca...> - 2004-03-30 22:09:41
|
It is attribute ie name of the input field. form is the HtmlForm object. So the first iteration should translate into like ... var field = form["consols.file_num"]; On Tue, 2004-03-30 at 16:52, Mike Bowler wrote: > Dave Smith wrote: > > > If I understand you then I'm going to guess it is Array or Function, but > > here is the offending code... > > All the standard javascript functions are implemented by the Rhino > engine so I'd guess that Array and Function aren't the problem. The > parts that HtmlUnit needs to implement are the browser specific host > objects like Form and Window and Frame. > > It might be the array indexing part of Form that is the problem. > > > var field = form[oRequired[x][0]]; > > It would appear that field is null so form[] is not returning the object > you need. What is the value being passed into form[]? Does it match > the name attribute of an object inside that form? Or is it an index? -- Dave Smith CANdata Systems Ltd 416-493-9020 |