Do you get any errors in your JavaScript console?

FWIW, this is already implemented in global.js - you can see it in action at:

http://demo.appfuse.org/appfuse-jsf/signup.html

Matt

On Wed, Apr 23, 2008 at 4:37 AM, Cens <[EMAIL PROTECTED]> wrote:
>
>  Using Appfuse 2.0.1 with JSF, is it possible to handle the onChange event?
>  Indeed I would like to implement a trivial behaviour, that is, changing the
>  background color of every input text  every time the user enter the field
>  and change it (onChange event).
>  I tryed to do that by modifing global.js adding in addFocusHandlers a line
>  like this:
>
>  elements[i].onchange=function() {this.style.backgroundColor='#FF0000'};
>  //Just a first trial
>
>  but nothing happens! Do you know why?
>  Does it depends from any "Prototype.emptyFunction" in any .js file?
>
>  TIA
>  Vincenzo Caselli
>
>  --
>  View this message in context: 
> http://www.nabble.com/onChange-event---tp16834202s2369p16834202.html
>  Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to