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

JQuery is not defined #24

Open
Abe2021 opened this issue Feb 10, 2021 · 1 comment
Open

JQuery is not defined #24

Abe2021 opened this issue Feb 10, 2021 · 1 comment

Comments

@Abe2021
Copy link

Abe2021 commented Feb 10, 2021

I can run the test /docs/control_options.html sample (albeit having to shuffle some of the javascripts into the /lib folder, but it works), but when I try to deploy this in my own implementation I get the error:

Uncaught ReferenceError: JQuery is not defined

on the "(JQuery)" part of the imgViewer call..
(function ($) { $(document).ready(function () { $("myImage").imgViewer(); }); })(JQuery);

I do have jQuery coming in (code.jquery.com/ui/1.12.1 and jquery-1.12.4.min.js as well as all the other sample scripts:

` <script type='text/javascript' src='https://code.jquery.com/jquery-1.12.4.min.js'></script>

	<script type='text/javascript' src='https://code.jquery.com/ui/1.12.1/jquery-ui.min.js'></script>

	<script type='text/javascript' src='https://unpkg.com/[email protected]'></script>

	<script type='text/javascript' src='javascript/hammer.min.js'></script>

	<script type='text/javascript' src='https://unpkg.com/[email protected]'></script>

	<script type='text/javascript' src='javascript/imgViewer.js'></script>`

(no load errors seen when running)

so why do I see this Uncaught ReferenceError?

@waynegm
Copy link
Owner

waynegm commented Jun 3, 2021

Can you share your page?

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

2 participants