What about if you move the javascript to below the form in the page?

Unless the javascript is being called by an onload in the body tag, it
will need to be below the form elements for them to exist when the
javascript executes.  

-----Original Message-----
From: Colm Garvey [mailto:[EMAIL PROTECTED] 
Sent: 19 March 2004 15:18
To: Struts Users Mailing List
Subject: html:form focus problem

Anyone else noticed an issue whereby the focus javascript is popping up
an
error because it can't find the element to which the focus is attached?
I've tested the code by re-invoking it after the page has fully loaded
and
it works just fine.
The problem seems to be that for some very odd reason the javascript is
being called before the element is available.

Anyone else experience this and if so, any workarounds?
Colm


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to