External resources for widget
Posted: Fri Jul 19, 2024 5:58 pm
Hello,
We are currently working on a project using a widget to implement javascript code.
We want to create a widget which uses external Javascript files but also xml files (used to store configuration data for the javascript execution).
We managed to create js files as external resources in the repository (which we reference in the widget in the resource tab) and the functions they contain seem to be available from js code inside the widget.
We also created resources for the two xml files, but we cannot access them from js code in the widget.
We tried different places whitout success :
- C:\Program Files (x86)\LANSAPTD\WebServer\Images
- C:\Program Files (x86)\LANSAPTD\X_WIN95\X_LANSA\x_BPF\web\vl
Where must the xml files be placed and how do they have to be referenced in the javascript in the widget ?
Thank you for your help!
We are currently working on a project using a widget to implement javascript code.
We want to create a widget which uses external Javascript files but also xml files (used to store configuration data for the javascript execution).
We managed to create js files as external resources in the repository (which we reference in the widget in the resource tab) and the functions they contain seem to be available from js code inside the widget.
We also created resources for the two xml files, but we cannot access them from js code in the widget.
We tried different places whitout success :
- C:\Program Files (x86)\LANSAPTD\WebServer\Images
- C:\Program Files (x86)\LANSAPTD\X_WIN95\X_LANSA\x_BPF\web\vl
Where must the xml files be placed and how do they have to be referenced in the javascript in the widget ?
Thank you for your help!