Skip to content
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

Open
Tahiche opened this issue Jun 19, 2017 · 2 comments
Open

a.indexOf is not a function javascript error #103

Tahiche opened this issue Jun 19, 2017 · 2 comments

Comments

@Tahiche
Copy link

Tahiche commented Jun 19, 2017

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"
It seems asexplained here that $(window).load() event is depracated (line 179 of jquery.tocify.js) and you should use $(window).on('load',function()... instead.

@advantiot
Copy link

Any plans to fix this?

@dpilafian
Copy link

The fix has been submitted in the "jQuery 3 compatible" pull request:
Issue #104

cpsievert added a commit to cpsievert/rmarkdown that referenced this issue Nov 19, 2019
cpsievert added a commit to cpsievert/rmarkdown that referenced this issue Nov 20, 2019
cpsievert added a commit to cpsievert/rmarkdown that referenced this issue Nov 20, 2019
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants