views:

113

answers:

1

I'm trying to deal with: "Requests made from Javascript running on your web pages must be proxied to avoid same-origin policy conflicts."

I know how to work with the JSON once I've got it. But aside from copy-pasting the JSON results via my browser, I don't know how to localize it for use.

A: 

Did you tried

$.getJSON('url', function(data){
//do smth with data
})

?

After the request is complete, data will be an object with all JSON response and you can access it as regular js object: data.something and so on.

Ionut Staicu