Including javascript files

Hi,
I’m just getting to grips with my Vera 2 and starting to look at coding… I was wondering if it’s possible to include more than 1 JS file into a JSON file. I’ve got a custom tab calling a javascript file, but I want to be able to include a set of libraries for data manipulation. I guess I could just append them all together, but that’s rather messy and difficult to manage.

Is there a better way to do this? I’ve tried a number of methods, but none work.

Thanks
Chris

Judging from the source at /www/cmh/js/ui4/cpanel.js: no.

include_remote_script(data_command_url+'/'+this.panelData.tabs[tab_i].tab.ScriptName,'')

It would be nice if there was some way to specify more than one file, but it would require a change to that line of code. I will raise a feature request on bugs.micasaverde.com; it’s a good improvement.

That means you are going to have to resort to pure-JavaScript hacks that append a element to the DOM tree at load time.

Thanks. I did try a DOM hack, but wasn’t immediately successful and thought there might be a better way! I’ll give it another try, but it would certainly be nice if there was a more elegant solution.

Cheers
Chris