struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank W. Zammetti" <>
Subject Re: Javascript onfocus issuein IE and struts 1.2.x
Date Thu, 11 Jan 2007 15:43:09 GMT
Hi Don,

In which version of IE do you observe this behavior?  I just verified in
IE 5.5, 6 and 7 that onfocus with a lower-case 'f' works just fine. 
AFAIK, case does not matter to any browser with event handler names,
whether Struts is involved or not... any chance the problem your seeing is
caused by something else and it just seems like this is the problem?
(we've all been there before! LOL)


Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
AIM/Yahoo: fzammetti
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts -
 Supplying the wheel, so you don't have to reinvent it!

On Thu, January 11, 2007 10:16 am, Don Don wrote:
>   Hi all,
>   I've noticed an issue with the above versions of struts and the
> javascript onfocus function when using IE.  Struts uses the function in
> lower case (e.g. "onfocus()") and even renders the generated code in
> lower case as well, IE on the other hand requires the function to be in
> this format "onFocus()" where the F is capitalized.  If the F is
> capitalized the function works in IE but if its uncapitalised e.g. f
> then it does not function in IE.
>   Other browsers seems to work fine, Firefox, etc.
>   Anyway of getting around this ?
>   Cheers
> ---------------------------------
> Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message