That's no how you're supposed to load a fragment (the intended way is to use a fragment widget). If you really want to do it that, then you must use widgetData.content
As I read this, I wonder what the best solution is for me for the following question:
I have a big jsfile (30000 lines) that loads instruments articulations and synth UI depending on the incoming midicc input.
I use this syntax in the js file :
if (args[1].value == 116 && args[2].value == 16)
{ receive('/EDIT', 'UI_widget,{
"widgets": [
{ "type": "panel", all my data widget............
I would like to split it into several files to be able to navigate and edit each instrument more easily.
something like : UI_synth1.json, UI_synth2.json ...etc
I misunderstand the documentation.
Should I use Fragment files or Fragment widgets?
... and as you wrote "It's partly outdated"...
What command should I use to call a specific external file in a js to populate my widget?
Using loadJSON is correct ! But you should do it only once at the beginning of your file and it doesn't make sense to bind app's sessionOpened in the the oscInFilter function (this should be done once at the beginning of the file as well).