-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a.indexOf is not a function javascript error #103
Comments
Any plans to fix this? |
The fix has been submitted in the "jQuery 3 compatible" pull request: |
cpsievert
added a commit
to cpsievert/rmarkdown
that referenced
this issue
Nov 19, 2019
Solves the same issue reported here gfranko/jquery.tocify.js#103
cpsievert
added a commit
to cpsievert/rmarkdown
that referenced
this issue
Nov 20, 2019
Solves the same issue reported here gfranko/jquery.tocify.js#103
cpsievert
added a commit
to cpsievert/rmarkdown
that referenced
this issue
Nov 20, 2019
Solves the same issue reported here gfranko/jquery.tocify.js#103
mudge
added a commit
to raspberrypi/documentation
that referenced
this issue
Dec 15, 2021
When loading a documentation page with a table of contents (e.g. https://www.raspberrypi.com/documentation/computers/getting-started.html), the following JavaScript error is thrown in the console: TypeError: e.indexOf is not a function. (In 'e.indexOf(" ")', 'e.indexOf' is undefined) This is caused by a unsupported mix of dependencies for Tocify: specifically, we're attempting to load jQuery 3.6.0 which removed an API used by Tocify (see gfranko/jquery.tocify.js#103). Fix this by loading versions of jQuery and jQuery UI that are supported by Tocify.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using jquery 3.2.1 and jqueri UI 1.12.1 I was getting an error "a.indexOf is not a function TypeError: a.indexOf is not a function"$(window).load() event is depracated (line 179 of jquery.tocify.js) and you should use $ (window).on('load',function()... instead.
It seems asexplained here that
The text was updated successfully, but these errors were encountered: