Hi,
I'm trying to get at a text file from an external website, for use with scripts running from my own domain. Example:
// run from www.mysite.com:
<html>
<head>
<script>
function blah() {
var data = document.getElementById("thedata");
alert(data.innerHtml);
}
</script>
</body>
<body>
<embed id="thedata" src="http://someotherwebsite.com/data.txt" HEIGHT=60 WIDTH=144>
</body>
</html>
This is not the best example, but basically I'd like to use javascript to get the contents imported from that external text file, and then do some computations on it.
I'm almost 100% sure this is not allowed, because of all the malicious things you can do with accessing data from other sites and all that stuff. Just wanted to see if there was some legit way of doing this,
Thanks