referencing plugin javascript files

foxesden <foxesden.aunnmn-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Tue, 29 Nov 2022 14:20:40 +0000
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
I am finding it very difficult to predictably locate my own javascript
libraries.

for example my plugin is located on path

Cache\InstalledPlugins\Plugins\SqueezeDSP\HTML\EN\plugins\SqueezeDSP\index.html

I have two libraries sqdsp_data.js and sqdsp_controls.js which manage
calls to the server and populate controls.

if I locate them in the same folder relative to the index.html file and
enter a path
<script type="text/javascript" src="sqdsp_data.js"></script>

or 

<script type="text/javascript" src="./sqdsp_data.js"></script>

the files do not seem to be picked up.

Can you confirm where I should be locating these files relative to the
above path?

For now I have embedded the scripts within index.html and the code is
working, but I don't like this approach.


------------------------------------------------------------------------
foxesden's Profile: http://forums.slimdevices.com/member.php?userid=56286
View this thread: http://forums.slimdevices.com/showthread.php?t=117138