The getJSON uses the XMLHttpRequest to make the ajax call. The XMLHttpRequest doesn't support remote website calls.
The odd thing is that the remote call was actually working for you at your office -- it shouldn't. If you do need to use ajax with a remote url, you can use JSONP, which is a work-around to this problem that uses <script src=""></script> tags to get the remote url. Here is some info on it: http://ajaxian.com/archives/jsonp-json-with-padding http://remysharp.com/2007/10/08/what-is-jsonp/ http://docs.jquery.com/Release:jQuery_1.2/Ajax JK -----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Plant More Tree Sent: Friday, March 07, 2008 6:56 AM To: jquery-en@googlegroups.com Subject: [jQuery] $.getJSON doesn't work on Vista PC while calling remote server Hi guys, if tried the following where usercontacts.j is in my localhost pc windows vista (tomcat6) and alert showed like [object object] mean there's some object in json argument: $.getJSON("usercontacts.js", function(json){ alert(json); }); so when I changed to remote location : $.getJSON("http://stufftolet.com/test/usercontacts.js", function(json){ alert(json); }); the alert doesn't work alert anymore. However, both behavior (local and remote) works on windows xp in my office. Is it some kind of security issue where stupid vista try to block outgoing connection? Appreciate any advice and help, Thanks ! regards, Mark -- View this message in context: http://www.nabble.com/%24.getJSON-doesn%27t-work-on-Vista-PC-while-calling-r emote-server-tp15893358s27240p15893358.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.