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 source it looks like the following: <input name="data[User][username]" type="text" onkeyup="populateUrl ('username', 'usernameUrl');" onfocus="showSignupHelp('username');" value="" id="UserUsername" /> It seems the form helper is escaping all quotes and characters.... How am I to bypass this? I've tried different combinations of quotes and escaping quotes (\') etc but nothing works. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---