MyBB Community Forums

Full Version: jQuery
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello MyBB,

I have been looking into some libraries for JavaScript because I feel like I could be implementing site dynamics much more efficiently with a JavaScript library. jQuery looks quite promising and I wish to use this library, but I am not quite sure how to use a library as I have never used a JavaScript library. Could someone point me in the right direction?
MyBB + jQuery:

For now, you still need to add this to your headerinclude template (after calling for jQuery)
<script> jQuery.noConflict(); </script>

and find (for example, in code related to jQuery)
   <script type="text/javascript">
    $(document).ready(function(){...

replace with
   <script type="text/javascript">
    jQuery(document).ready(function(){...
(2012-05-13, 07:00 PM)seeker Wrote: [ -> ]MyBB + jQuery:
...

Do not forget to include the jQuery library. Smile Without including the library jQuery functions will not work.
Thank you all for your input and the helpful redirects. I'll be sure to look at all of them and will try to implement something today.

Wish me luck!
If you want to could go about installing coffescript, and then you can compile your .coffee files into javascript.
Or just wait for 1.8x when jquery will be default.