What javascript libraries required to run $(function) in a document template - Forum - Rollbase - Progress Community

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

 Forum

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

This question is answered

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? 

Verified Answer
  • 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
  • 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