Wednesday, February 24, 2010

Programmer - jQuery. Using json data on remote server fails.

Programmer Question

Hello,



I am working with json data together with jQuery. It works perfectly fine when using a local json file, but shows just a blank page when using a remote json file from another server (even when using a complete URL from my own server).



This works:



$.getJSON('9.json', function(data) {


Does does not work:



$.getJSON('http://beta.ambadoo.com/users/9.json', function(data) {


Does anyone know how to fix it?



Thanks!

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails