Question about paths of included JS libraries for a production machine | jeckels | 2013-08-14 10:51 |
Status: Closed | ||
Hi Leo, In general, we recommend that developers include references to required JavaScript files via the .view.xml file. If you haven't already tried it, you can likely include a reference to jQuery there as well, which might solve your problem. If that doesn't work, though, you may be able to use the special <%=contextPath%> substitution in your .html file: https://www.labkey.org/wiki/home/Documentation/page.view?name=addHTMLandWebPart I don't know what your exact file layout looks like, but it would likely be something like: <script type='text/javascript' src='<%=contextPath%>/OpenCyto/FancyBox/source/jquery.fancybox.pack.js'></script> That should work regardless of what LabKey folder/project it's being used in. Thanks, Josh |
||