I have an html file that lives on www.domain-a.com
It references a js file that lives on www.domain-b.com/somedirectory/js
Within the js file I need to be able to point to www.domain-b.com but using relative paths only to a file such as www.domain-b.com/somedirectory/images
Any advice? Currently I am trying something like...
myImgUrl = '../images';
But when that is injected onto the page, that is showing up in the HTML as something like...
<img src="http://../images/somefile.jpg" />
Feedback is always appreciated.