Well, addendum : I used html:link to check things, and then I got the same error but for the function that worked, too (hide/show a table) !! My faulty function call remains :
<a href="<%=linkTo%>" onMouseOver="javascript:menuHelp('Div<%=indexHelp%>', 'visible');" onMouseOut="javascript:menuHelp('Div<%=indexHelp%>', 'hidden');"> <nested:write property="nodeVal"/> </a> which calls the script and throws the error below. ----- Original Message ----- From: Barbara Post <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 28, 2002 10:57 AM Subject: bug with a javascript that worked..... > OK Struts gurus ;-) here we go : this javascript is so very simple and works > well. > > Maybe I shouldn't use <a href="... " > in <nested: ... > tag ? > > Gotta try <html:link instead>. > > The event that does not behave well is onMouseOver, browser tells that > document.layers[...].style is not an object. But another javascript called > by a click on a link (<a href="javascript:... >) does work. > > function menuHelp(divId, vis) > { > if (document.layers) { > document.layers[divId].visibility = vis; > } > else { > document.all[divId].style.visibility = vis; > } > return true; > } > > > Barbara > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>