File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes cross domain issue in javascript.. is JSON a solution? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "cross domain issue in javascript.. is JSON a solution?" Watch "cross domain issue in javascript.. is JSON a solution?" New topic
Author

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

Neha k Agrawal
Greenhorn

Joined: Mar 25, 2008
Posts: 25
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:-

1)JSON
2)IFrames
3)Proxy

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cross domain issue in javascript.. is JSON a solution?