Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Magento Go and jQuery Problem

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #40092
    charlie
    Participant

    After following the instructions here:( http://go.magento.com/support/kb/entr… ) I still haven’t been able to get the jQuery Cycle plugin to function.

    Demo site is: ( http://lilyjewelers.gostorego.com/ )

    After trying everything I could think of I’m still getting the following errors from firebug:

    1) $("#nav1").cycle is not a function
    next: '#next', prev: '#prev'
    lilyje...ego.com (line 225)

    2) $(".slideshow").cycle is not a function
    ...ger: '#slidenav', speed: 600, timeout: 5000, pause: 1, cleartype: true, clearty...
    lilyje...ego.com (line 217)

    Thank you!
    CM

    #111103
    TheDoc
    Member

    You should be including the cycle.js file *after* jQuery.

    #111117
    charlie
    Participant

    Yep! I think that is it but….

    sad I’m frustrated
    Edit
    Delete
    Don Keller less than a minute ago
    Okay…
    I’m pretty sure it is a load order problem. The jquery plugin was loading before the jquery library. So, per instructions at (http://go.magento.com/support/kb/entr…) I added —var j172 = jQuery.noConflict(true);— to the end of the jquery library 1.7.2 and uploaded it via the javascript editor.

    I’ve also wrapped my jquery script with:

    The order seems to be correct now but I’m getting these errors:

    ReferenceError: Can’t find variable: j172 http://lilyjewelers.gostorego.com/:219
    ReferenceError: Can’t find variable: j172 http://lilyjewelers.gostorego.com/:226

    Any ideas?

    #111119
    charlie
    Participant

    sorry about the junk copy at beginning of post:
    “sad I’m frustrated Edit Delete Don Keller less than a minute ago”

    #111138
    TheDoc
    Member

    I’m not seeing those errors, but you do have a couple 404s kicking around.

    #111149
    charlie
    Participant

    Got it working! The Cycle js needed to have a couple of references to

    })(jQuery);

    changed to

    })(j172);

    .

    It’s always the simple things you miss…

    Thank you,
    CM

    #130106
    ktrajasekar
    Member

    Hi can you add custom cycle jquery

    with

    })(jQuery); & })(j172);

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.