[jQuery] Re: $.getJSON doesn't work on Vista PC while calling remote server

2008-03-09 Thread Plant More Tree
Hi Joe, Thanks a lot for your suggestion. It works. However, I got error while calling remotely with the following exception from javascript: invalid label [Break on this error] {"user":{"items":[{"name":"Vinod Abraham","email":"[EMAIL PROTECTED]"},{"name":... when using $.getJSON("http://w

[jQuery] Re: $.getJSON doesn't work on Vista PC while calling remote server

2008-03-07 Thread Jeffrey Kretz
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

[jQuery] Re: $.getJSON doesn't work on Vista PC while calling remote server

2008-03-07 Thread Steve Blades
And it wouldn't, as that would be a crosssite scripting instance, which isn't permitted. -- Steve "Cutter" Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com --- The Past is a Memory The Futu

[jQuery] Re: $.getJSON doesn't work on Vista PC while calling remote server

2008-03-07 Thread Joe Maller
I've had issues where jQuery's JSON requests were treated as XHRs if there was no JSONp callback. That obviously doesn't work going cross- domain. If you change your url to /http://stufftolet.com/test/usercontacts.js? callback=?" it should work, though you're going to need to hook up the result.