I have a var image_server = 'http://imageserver:8004' in my html and then I link to external.js .
What I want to do within external.js is:
var image1 = new Image();
image1.src = $image_server + '/images/myImage1.jpg';
Will this work? It doesn't seem to be. I am relatively new to JS and would appreciate any pointers, code or tips you could give me.
Thanks in advance!
What I want to do within external.js is:
var image1 = new Image();
image1.src = $image_server + '/images/myImage1.jpg';
Will this work? It doesn't seem to be. I am relatively new to JS and would appreciate any pointers, code or tips you could give me.
Thanks in advance!
Comment