Author Message
Andrew.Prokop
Joined: Oct 28, 2014
Messages: 179
Offline
I am writing a snap-in that uses the index.jsp that comes in the archetype. I want to use ajax in that file, but I am finding that the jsquery library is not on the server (or is not loading). Should it be? I previously did this same thing on a 3.2 lab and it worked.

The reference in my index.jsp file is:

<script type="text/javascript" src="jquery-1.4.2.min.js"></script>

My code fails when I do this:

var request = $.ajax({....

I receive a "$ is not defined" exception.

Should I be using a different library?

Also, I tried this, but I still get the exception.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
Andrew.Prokop
Joined: Oct 28, 2014
Messages: 179
Offline
I did find that I can load it with "https://code.jquery.com/jquery-1.4.2.min.js." I think I am good to go for now.
neyla12
Joined: Jun 5, 2018
Messages: 1
Offline
Should I be using a different library?
Go to:   
Mobile view