Skip to content

jQuery.getQueryParameters is undefined in chrome #1676

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

Closed
xto opened this issue Jan 14, 2015 · 2 comments
Closed

jQuery.getQueryParameters is undefined in chrome #1676

xto opened this issue Jan 14, 2015 · 2 comments

Comments

@xto
Copy link

xto commented Jan 14, 2015

In Sphinx 1.2.3, when using chrome (Version 39.0.2171.99, 64-bit), I'm unable to search through the documentation. I'm not sure if it is related to #1642 since I don't get stuck on "Searching...". I get a Javascript error saying that "undefined is not a function" at line 192 of doctools.js and at line 238 of searchtools.js. Both lines call $.getQueryParameters

I also tested with IE 10.0.9200.17183 and the same error happens.

Calling from the browser's console $.getQueryParameters returns undefined. What I don't understand is that it works fine in Firefox 33.1.1 and 34.0

I'd be to help with this, though I have no clue why the declaration of getQueryParameters is completely ignored by Chrome and IE.

@shimizukawa
Copy link
Member

I can't reproduce the behavior on my browsers. I suspect that $ variable was used for another JS library in your sphinx documentation. Could you attach a small source & html example?

@xto
Copy link
Author

xto commented Jan 15, 2015

Thanks to you, I figured out the issue. I'm using sphinxcontrib-images and it is including jQuery again, undoing the work done by doctools.js and searchtools.js.

Since the issue is caused by a plugin, I'll close the issue.

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants