The first step, in layout:
    <head>
           <?php
              echo $javascript->link('jquery-1.3.2.min.js'');
              echo $javascript->link('jquery.datepick.js'');
           ?>
    </head>
and then, in view
<script type="text/javascript">
      //TODO: js code
</script>
This should be the simplest way, there are other high-level point comparison
method. For example, one can write their own helper, and then use the local
call
I am sorry, my rather poor English, I do not know whether you understand!

2009/4/15 d1ve blu3 <[email protected]>

> Hallow,,
>
> I want to ask how to add some javascript (jquery)? Because I used this
> <?=$html->Javascript('jquery-1.3.2.min.js');?>
> <?=$html->Javascript('jquery.datepick.js');?>
> In views/layout/default.ctp but this error keep showing
>
> *Warning* (512): Method HtmlHelper::Javascript does not exist 
> [*CORE\cake\libs\view\helper.php*, line *143*]
>
> I put my .js script in webroot/js/
>
> Thanks
>
> --
> "One of the mankind greatest enemy is man itself"
> -Gendo Ikari
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to