WordPress.org

Ready to get started?Download WordPress

Forums

WP Accessibility
ScrollTo not being included (4 posts)

  1. Peter Massey-Plantinga
    Member
    Posted 1 year ago #

    We're getting this javascript error when we enable the toolbar:

    [13:16:37.520] TypeError: $(...).ScrollTo is not a function @ http://localhost/wp-content/plugins/wp-accessibility/toolbar/js/a11y.js?ver=1.0:120

    I'm thinking this is probably a case error... Do you mean scrollTo rather than ScrollTo? Changing this fixed the javascript error on our site.

    Thanks for the work you do!

    http://wordpress.org/extend/plugins/wp-accessibility/

  2. Peter Massey-Plantinga
    Member
    Posted 1 year ago #

    scrollTo is also not being called correctly.

    It should be:

    $(document).scrollTo( inPageAnchor, {duration: 1000} );

  3. esmi
    Forum Moderator
    Posted 1 year ago #

  4. Peter Massey-Plantinga
    Member
    Posted 1 year ago #

    They're related, but they're definitely separate issues.

    I found this issue because we had a jQuery handler on an <a href="#"> element, which wasn't firing because of this error. So I discovered this error because of the other one.

    Once this error is fixed, the call to jQuery('#') doesn't actually do anything but throw a few warnings (which still should be cleaned up for other developer's debugging pleasure).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic