Forums

JavaScript includes problems (1 post)

  1. dound
    Member
    Posted 3 years ago #

    I recently added some plugins; one uses jQuery another uses sack. Anyway, I see wp_enqueue_script is called for 'jquery' and 'sack', but when I browse to a page the firefox error console shows 'jQuery not defined' and 'sack not defined' as the plugins try to use those objects.

    I checked the page source and see included:

    <script type='text/javascript' src='http://dound.com/wp/wp-includes/js/jquery/jquery.js?ver=1.2.6'></script>

    and something similar for sack -- so it seems like they are being included.

    I tried manually adding the script after the begin <head> tag without the '?ver=1.2.6", e.g.:

    <script type='text/javascript' src='http://dound.com/wp/wp-includes/js/jquery/jquery.js'></script>

    and this worked. Why isn't the first include, which wordpress is automatically including for me, working properly?

    Thanks!

    [signature moderated Please read the Forum Rules]

Topic Closed

This topic has been closed to new replies.

About this Topic