Using JQuery in a Module... Path Issue... | Nick Kerr | 2016-04-26 11:31 |
Status: Closed | ||
Hi Diego, Thanks for the post. You'll need to do a couple things to get jQuery running: 1. Get the version of jQuery you're looking to use from their website. 2. Create a 'web' directory next to your 'views' directory and place jQuery there (e.g. ../externalModules/helloworld/web/jquery-x.xx.js). 3. Next to your helloWorld.html, create the helloWorld.view.xml (you may have already done this) adding a "dependencies" section. Here's a brief example: <view xmlns="http://labkey.org/data/xml/view" title="Hello, World!"> <dependencies> <dependency path="jquery-x.xx.js"></dependency> </dependencies> </view> Here is a more complete write-up on this topic: https://www.labkey.org/wiki/home/Documentation/page.view?name=scriptdepend Thanks, Nick |
||