Tuesday, April 28, 2009

call javascript from the action form

Hi there! I having some problems trying to call a java script from the
action's forms.

- What I need is something like this:
<form action="javascript:parent.doForm();">

what I got is this:
<form id="UserJavascript:parent.doForm();Form" method="post" action="/
users/javascript:parent.doForm();">

- my php code is:

login.ctp (file):
e($form->create(array('action' => 'javascript:parent.doForm();')));

how can I call the javascript using the "form" object?

Thank for your time
Nicolas
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: