I am able to render JSON data in browser but when giving it as URL link in Javascript, it doesn't brings the data.
It shows null. The same thing happened when I use Java. I think this is the cross domain problem.
How to get resolve of this?
I am able to render JSON data in browser but when giving it as URL link in Javascript, it doesn't brings the data.
It shows null. The same thing happened when I use Java. I think this is the cross domain problem.
How to get resolve of this?
Use CURL to get the Data's from Cross Domaim. Curl is more reliable and best method for cross domain data obtain.
You could try to used jsonp. See Basic example of using .ajax() with JSONP?
You could also create a proxy, a simple php script on your web server that get the info from the remote server. See http://benalman.com/code/projects/php-simple-proxy/examples/simple/