ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

jquery and css use

May 03, 2011 12:29pm

Subscribe [1]
  • #1 / May 03, 2011 12:29pm

    kjacket

    1 posts

    Can I use jquery and other JS scripts as I normally would instead of using modules?

    ex. (in template)

    [removed][removed]
    [removed]

    $(’‘).doSomething();

    [removed]

    ?

  • #2 / May 04, 2011 12:49am

    Lisa Wess

    20502 posts

    Welcome to the forums, kjacket!

    Yes, you can use your own JS calls, you don’t need to use the jQuery module.  Call them as you would on a normal HTML page, but make sure you use the absolute path, ie:

    src="/scripts/name-of-script.js"

    You’ll also want to ensure that you keep Admin > System Administration > Output and Debugging Preferences, Debug Preference Set to “1: Superadmins only”.

    Does that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases