I'm working on a project and I'm using a SCADA system. The system is a HTML and JS based. The code that I've written works when I run it through normal notepad++ and any browser. The images get displayed. But It seems that the SCADA system can't process the available DOM methods when images come to play. The provided short example code typically works well but the SCADA system does not allow this type of code. It returns this type of error GET http://localhost/EMACS/$GLOBAL_RESOURCE$Neon_sun.svg 404 (Not Found)
It only displays an image when it's strickly provided in the body of a html file within the img tag but not when I run it through a script. Now, is there a way that I can execute my script and as the result of it an image will be returned and displayed in the html file as a img tag? So, to recap the short code does not work in this case, is there a workaround?
let myimage = new Image(200,200);
myimage.src="exampleimage.svg";
document.getElementById("insertimage").appendChild(myimage);
nor this:
var myimage = document.createElement("img");
myimage.setAttribute("src", "exampleimage.svg");
...