Using JQuery in a Module... Path Issue...

LabKey Support Forum
Using JQuery in a Module... Path Issue... diego  2016-05-11 13:34
Status: Closed
 
Jon,

Dropped the "helloWorld.zip" into "/usr/local/labkey/externalModules/" -> unzipped -> restarted tomcat, was able to add helloworld module as "<Select Web Part>". The only issue is that the "js" internal libraries are not working... Also firebug is not displaying any errors when using "internal" libraries.... Does it work for you?

Thanks,
Diego


###################################
# WORKING
##################################
    LABKEY.requiresScript([
        'https://code.jquery.com/jquery-2.2.3.min.js',
        'https://code.jquery.com/ui/1.11.4/jquery-ui.js'
        // add more files to this array
    ], true, jQueryReady, this, true);
  
###################################
# NOT WORKING
##################################
   LABKEY.requiresScript([
       "/helloWorld/scripts/jquery-2.2.2.min.js",
       "/helloWorld/scripts/jquery-ui.js"
        ], true, jQueryReady, this, true);