3

I'm trying to get the data with jQuery Cross Domain (on github).. but without success! I read that i must make a request jsonp, but I do not understand what is wrong..

http://jsfiddle.net/jzjVh/

Chrome interprets the file as Javascript.. IE9 except a warning because the file "was blocked due to mime type mismatch".. I do not even understand if there is a difference from .txt and .json.

1
  • You should research for ajax Cross Domain. Commented Jun 17, 2012 at 15:45

1 Answer 1

12

And here we go again...
You are fighting with http://en.wikipedia.org/wiki/Same_origin_policy.

enter image description here
While

enter image description here

Possible solution will be using a local proxy like http://developer.yahoo.com/javascript/howto-proxy.html

enter image description here

Sign up to request clarification or add additional context in comments.

8 Comments

You can publish your answer step by step, as long as the initial answer has a value, "You are fighting with Same origin policy" doesn't fit the criteria IMHO. And anyway, your answer even in the current state is a links proxy, you should try to improve it.
@gdoron: Went on some other site in between so posted incomplete answer. I have updated my answer. Thank you.
It still should be a comment and not an answer. If you only give him reading assignment => comment.
@gdoron: I have update my answer again. I think adding images give better understanding. It should be in comment but images cant be added there so..
Reverted the downvote. Good luck! thanks for improving your post! we all benefit from it!
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.