Well I place jquery stuff in a subdirectory of webroot/js

I have webroot/js/jquery/jquery.js

In my header I have:
--------------------------------------------------------------------------------------------
<script type="text/javascript" src="/js/jquery/jquery.js"></script>
--------------------------------------------------------------------------------------------

If you are also using prototype, make sure you avoid conflicts.

Read this: Using jQuery with Other Libraries
http://docs.jquery.com/Using_jQuery_with_Other_Libraries

I use to prefix my jQuery stuff with $j and prototype stuff with $
--------------------------------------------------------------------------------------------
<script>
     var $j = jQuery.noConflict();

     // Use jQuery via $j(...)
     $j(document).ready(function(){
       $j("div").hide();
     });
-------------------------------------------------------------------------------------------

Dan


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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