From: Ryan L. <Rya...@Su...> - 2003-09-05 20:47:27
|
On Fri, 2003-09-05 at 14:40, Mike Bowler wrote: > Ryan Lubke wrote: > > ---------------------------------------------------------- > > EcmaError: lineNumber=[1] column=[0] > > lineSource=[document.forms[0].elements['worldMap_current'].value='NAmerica'; document.forms[0].submit()] name=[ConversionError] sourceName=[)] message=[The undefined value has no properties.] errorObject=[ConversionError: The undefined value has no properties.] > > --------------------------------------------------------- > > > > Anyone have any thoughts on this before I start digging deeper? > > I don't see anything obviously wrong with what you've posted. Can you > verify that elements['worldMap_current'] is returning a hidden field? Ok...I've got it narrowed down. It seems that if I issue page.executeJavaScriptIfPossible() with 'document.forms.length' the result is 0. So I changed the page to add a name attribute to the form and changed the javascript to: document.form1.worldMap_current.value='test' And it worked. Anyone there any known issues with document.forms[index]? -- Ryan Lubke <Rya...@Su...> Sun Microsystems, Inc. |