If u want the script on body`s page, just remove this `inline` => false.
$this->Html->scriptBlock("document.getElementById(\"OpFirstName
\").focus();");
Atenciosamente,
Vinícius Moraes
2011/9/21 nkoss <[email protected]>
> Webbedit...
> AHA...but your code did not work since scriptBlock is a method of the
> Html helper. When I used...
> $this->Html->scriptBlock("document.getElementById(\"OpFirstName
> \").focus();",
> array('inline'=>false, 'safe'=>false));
> it placed the code in the <HEAD> so not very useful
>
> Miles...
> I think I agree with you
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php