I am working on a site server side that has uses XML to get data. The path to the XML I need is something like "/image/user/username/"
I need to get the XML file from that resulting link using something like
<script type="text/javascript">
imagesByUser('/../image/user/{{ user.username }}/')
I know that the link is working because I tested it seperately and when I clicked on it, it took me to the correct page with the XML data. However, when I try to parse the data I get an xmlHttp.responseXML is null error on this line
var images= xmlHttp.responseXML.documentElement.getElementsByTagName("image");
I get the file with this
xmlHttp.open("GET",url,true);
xmlHttp.send();
Also, it works when I use a direct file like imagesByUser('images.xml')
So why wont it work from a page off the server??