0

Why jquery script works online while the offline package doesn't work on chrome ?

27th Jan 2022, 7:07 AM
Mohammed
14 Respuestas
+ 3
Did you download the offline jquery package?
27th Jan 2022, 7:43 AM
ShadowCipher
ShadowCipher - avatar
+ 2
Mohammed Try to download CDN jQuery library and put this library and html file in same folder then try to open in Chrome or Mozilla and see what comes in Console.
27th Jan 2022, 8:50 AM
A͢J
A͢J - avatar
+ 2
are you using local path ? i mean file://sdcard/ like that ?.. it cant be done .. you cant access local storage from http server directly
28th Jan 2022, 11:08 AM
SANGRAM GARAI
SANGRAM GARAI - avatar
+ 1
Is not possible you are missing something..... post your code and i can help you
27th Jan 2022, 7:37 AM
Marco Ginato
Marco Ginato - avatar
+ 1
Change src="https://code.jquery.com/jquery-3.1.1.js" With src="relativePath/jquery-3.1.1.js"
27th Jan 2022, 7:46 AM
Marco Ginato
Marco Ginato - avatar
+ 1
Example: If your html file is under c:\mySite and your jquery.js is under c:\mySite\js you only need to write the path of jquery file relative to html file path src="js/jqueryFile.js"
27th Jan 2022, 8:30 AM
Marco Ginato
Marco Ginato - avatar
0
There must be a script file you are missing
27th Jan 2022, 7:36 AM
ShadowCipher
ShadowCipher - avatar
0
Kapama, Joshua No, the code remains the same, I tried cut paste the online jquery path (It works), the offline path doesn't work.
27th Jan 2022, 7:38 AM
Mohammed
0
Of course.
27th Jan 2022, 7:44 AM
Mohammed
0
Marco Ginato It's in the same folder, I tried the full path too.
27th Jan 2022, 8:01 AM
Mohammed
0
Remember the starting point Is the Path of index.html
27th Jan 2022, 8:15 AM
Marco Ginato
Marco Ginato - avatar
0
Marco Ginato I haven't got what you mean, I copied the full path and it shows no errors on the path.
27th Jan 2022, 8:23 AM
Mohammed
0
just use reference path.. like "./sdcard/" from your root folder ..
28th Jan 2022, 11:10 AM
SANGRAM GARAI
SANGRAM GARAI - avatar