views:

91

answers:

2

I'm using JQuery to make a JSON request to access data on a private server. I've noticed however that I get this message when attempting to access the data:

Security Error: Content at xxxxxxx may not load data from xxxxxxx.

Looking at the JQuery reference I see it's accessing: http://api.flickr.com/services/feeds/photos%5Fpublic.gne?tags=cat&tagmode=any&format=json&jsoncallback=?

I'm wondering how Flickr is able to deliver data without an error message popping up as such. Initial investigation has showed me that it's actually on the server end, it adds some sort of callback function.

Basically the question is, how exactly does this work and how do I implement it on webservices I've created on the server I plan to access?

A: 

You'll need to use JSONP. @redsquare posted a good answer here with links to some excellent articles.

Marve
A: 

I think an easier way to do it is to create a http handler on hte current server that actually gets the request server side from the other server and than call that handler locally.

Chris Westbrook