B4J Question Use JQuery offline

BPak

Active Member
Licensed User
Longtime User
I have ran the HelloWorld Server example offline and the Link for the Ajax does not work.

However, if I go online it will then work. Inspecting the HTML files shows the JQuery script is used online.

Is there a specific file I can download from JQuery that has Ajax included so that I may use the HelloWorld offline?

JQuery seems to have a lot of different files...
 
In the examples, jquery files (js and css) are loaded from internet(cdn), so you can reach them when goes offline.

You can copy them to your sever, and change links refer to them.

Code:
//download jquery-latest.min.js to your hard disk,move it to static file folder (www)
// change the line which refers to jquery in your html files, e.g.:
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>

//to your local server folder
<script src="/jquery-latest.min.js" type="text/javascript"></script>

Many jquery (js and css) versions are available, your can try 1.9+, not sure if there is any problem with jquery 2.x .
 
Upvote 0
Thanks billzhan. will look for them in the folders.

Also I managed to find 1.11.1 and it seems ok as well offline by changing the Web page.

Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script src="jquery-1.11.1.js" type="text/javascript"></script>
</head>
 
Upvote 0
Back
Top