getting xml without server side script?

Question by Kazuma: getting xml without server side script?
Is it possible to retrieve an xml file on a different server from with in the HTML using something like Javascript or Ajax? I tried using jQuery after I figured out ajax wouldn’t let me retrieve data that didn’t have the same host name but I recieve the same result.

Need some way to load the XML into html… I was thinking XLST but I can’t use it because I’m not the one creating the website. I’m only providing the backend. This XML should be included just by a simple Javascript function which converts and prints the XML into the HTML.

Best answer:

Answer by Alarice Chan
I’m not quite sure what script you can use to get content if JavaScript doesn’t work but it could be your server’s fault or the other server’s that the script couldn’t access the XML. XML should be accessible to the browser as long as your server allows others to integrate it to other websites and the other server also permits foreign server content (could be a security feature to prevent content stealing or cross-server scripting vulnerability).

What do you think? Answer below!

About Admin