What javascript libraries required to run $(function) in a d

Posted by tvignolaISV on 20-Apr-2017 15:56

I am trying to use a $(function) in a document template. When I look at "Inspect" in Chrome, I get an error:

Uncaught ReferenceError: $ is not defined.

the statement

<script language="JavaScript" src="../js/main.js"></script>

in my code does not seem to help.

What are the correct <script> statements or references in order to use the $(function) in a document template? 

Posted by mpiscoso@gmail.com on 21-Apr-2017 19:19

it should be the jquery library which should look something like: <script src="code.jquery.com/.../script>

You may check the correct version that you need from here: https://code.jquery.com/

I suggest you download the file you need and save it as a Hosted file in your zone so that you always reference something from within your app and nothing external like the example above.

Hope that helps,

Piscoso, Martin

All Replies

Posted by mpiscoso@gmail.com on 21-Apr-2017 19:19

it should be the jquery library which should look something like: <script src="code.jquery.com/.../script>

You may check the correct version that you need from here: https://code.jquery.com/

I suggest you download the file you need and save it as a Hosted file in your zone so that you always reference something from within your app and nothing external like the example above.

Hope that helps,

Piscoso, Martin

This thread is closed