Original Post
Hey folks !
I've tried to incorporate XML into my website for the sake of modularity and I have come to understand javascript is the way to do this. However for some reason I'm having a real hard time making this work in my own websites, even when I use the exact same code and files provided in this tutorial (first example).
When I use the "TryIt Editor" they provide things look just the way they should, but as soon as I use files on my own computer or online server then the script seems to halt at "xmlhttp.open("GET","whatever.xml",false);". Any other code below this point, html or otherwise, isn't displayed. The problems are so incredibly irregular as I managed to display the sample code and xml-file (on my computer) 1 time in Internet Explorer, but after that it didn't work anymore (I tried to clear the cache). Firefox doesn't seem to have this problem but then it won't display the page on my server at all.
I'm going nuts with this problem because it is so unrewarding to try to solve it when there is no direct error feedback. If someone could give me a hint what the problem might be or if there is an alternative to using javascript I would be ever grateful.<br><br>- Dave
I've tried to incorporate XML into my website for the sake of modularity and I have come to understand javascript is the way to do this. However for some reason I'm having a real hard time making this work in my own websites, even when I use the exact same code and files provided in this tutorial (first example).
When I use the "TryIt Editor" they provide things look just the way they should, but as soon as I use files on my own computer or online server then the script seems to halt at "xmlhttp.open("GET","whatever.xml",false);". Any other code below this point, html or otherwise, isn't displayed. The problems are so incredibly irregular as I managed to display the sample code and xml-file (on my computer) 1 time in Internet Explorer, but after that it didn't work anymore (I tried to clear the cache). Firefox doesn't seem to have this problem but then it won't display the page on my server at all.
I'm going nuts with this problem because it is so unrewarding to try to solve it when there is no direct error feedback. If someone could give me a hint what the problem might be or if there is an alternative to using javascript I would be ever grateful.<br><br>- Dave