This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cross domain issue in javascript.. is JSON a solution?

Neha k Agrawal
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Experts,
I am stuck with cross domain issue.I am using XmlHttpRequest object & I came to know that I can't call Cross Domain links using it.Then I started reading about it & came to know about 3 solutions:-


According to my requirement IFrames & Proxy are of no use for me.I can only think of JSON from the above 3.I started reading about it but didn't get any good example which can help me in solving my problem.Every body is saying to use <script> Tag but how ?? Can anyone please give me a light by giving some example on how exactly helps is solving cross domain issues.Or rather an example which shows how JSON replaces XmlHttpRequest object.Because finally I need to change my existing code which is written using XmlHttpRequest object.Please Help.I will really really APPRECIATE any HELP.Thanks a ton in advance.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic