Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 0
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
New to this Portal?
Click on Join Now to Sign Up
Join Now
Help
Feedback
Sign In
duck.co - The DuckDuckGo Community
Recent Topics
All Forums
Search All
Tags
Author
Advanced Search
Search
New Topic
Screen name:
tartifletteman
tartifletteman's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
Problem using the api with jQuery.getJSON
[1Reply]
14-Apr-2011 06:00 PM
Forum:
DuckDuckGo Forum
Hi,
I do the following stuff:
var url = "https://api.duckduckgo.com/";
$.getJSON(url,{q:'duckduckgo', o:'json'}, function(data) {
alert(data);
});
And I receive a '
XMLHttpRequest cannot load
https://api.duckduckgo.com/?q=duckduckgo&o=json
. Origin null is not allowed by Access-Control-Allow-Origin.
' message.
The jQuery example with flickr from their page :
http://api.jquery.com/jQuery.getJSON/
works well...
Don't know what to do :(
Edit :
It doesn't work with a local file, and not with a real page on a server.
Edit 2 :
I'm using chromium nightly... Is it bad ?
Edit 3 :
With a normal Chrome, the same result.
Maybe the response should have a "Access-Control-Allow-Origin" header which is the same as the client...
«Prev
Next »
Moderate user : tartifletteman
Forum