From: Ryan L. <Rya...@Su...> - 2003-09-05 18:07:50
|
Hello, I'm using HtmlUnit v, 1.2.3. I have a page that renders an image map with multiple 'live' areas. Here is an example of the AREA element: <area alt="NAmerica" coords=<SOME COORDS>" shape="poly" onmouseout="document.forms[0].mapImage.src='/images/world.gif'" onmouseover="document.forms[0].mapImage.src='/images/world_namer.gif'" onclick="document.forms[0].worldMap_current.value='NAmerica'; document.forms[0].submit()"> I'm trying to validate the worldMap_current hidden field is appropriately updated when the onClick handler is invoked, however when I call executeJavascriptIfPossible on the HtmlArea element, I receive the following: ---------------------------------------------------------- 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? |