Question about paths of included JS libraries for a production machine | Leo Dashevskiy | 2013-08-09 18:29 | |||||||||||||||
Status: Closed | |||||||||||||||||
Hello, folks! In one custom module I have the following path for custom JS libraries <module_name_1>/resources/web/OpenCyto: In a different module I need to include a library from that first module, moreover I must include it not through the begin.view.xml file way, but directly in my <module_name_2>/resources/view/begin.html file within a <script> tag (it does not work through the begin.view.xml file way, may be, because it needs jQuery, which I also must include via a <script> tag before the call below): <script type='text/javascript' src='../../OpenCyto/FancyBox/source/jquery.fancybox.pack.js'></script> This works fine on 2 development machine, but fails on the production machine with the following error: "Failed to load resource: the server responded with a status of 404 (Not Found)" I am thinking this is because I 'hacked' its path on a dev machine via: '../../OpenCyto...' and the folder structure is different on a production machine. So, please, help me make it generic, so that it works on both production and development machines or otherwise advise what to do! Thanks. -Leo |
|||||||||||||||||
| |||||||||||||||||