use javascript to read a link resource without ajax

Posted by user156153 on Stack Overflow See other posts from Stack Overflow or by user156153
Published on 2010-06-06T20:56:05Z Indexed on 2010/06/06 21:02 UTC
Read the original article Hit count: 226

Filed under:

Not sure if it's possible but how do I read a resource from a url using javascript without ajax?

for example, the following url is a static text file containing json encoded text

http://mysite.s3.amazonaws.com/jsonencodedcontent.txt

I'd like to use javascript to read the content from above link, read the json content into a javascript variable.

I can't use ajax because of cross site and I have no control over amazon S3 domain.

anyway to achieve this?

© Stack Overflow or respective owner

Related posts about JavaScript