Re: $form-input with onkeyup, onfocus, etc

2008-12-13 Thread Adam Royle
CakePHP doesn't discern between html attributes, by default it escapes all attribute values. If you want to change this behaviour, then you can pass 'escape' = false as part of that second array, *however* you will manually need to escape all other values (including the input value I believe). A

$form-input with onkeyup, onfocus, etc

2008-12-12 Thread gearvOsh
So I have input fields that need javascript events for onfocus and onkeyup.. here is my code: ?php // Username echo $form-input('username', array('onkeyup' = populateUrl ('username', 'usernameUrl');, 'onfocus'= showSignupHelp ('username');)); ? That works, BUT when you look at the