Hi. I'm using jQuery on my website, and the idea is to load kuler themes based on a search term from the user.
The documentations was kinda hard to understand, but this is what I've got so far:
$.ajax({
url: "http://kuler-api.adobe.com/rss/search.cfm",
data: {"searchQuery":"blue", "key":"MyKey"},
success: function(data) {
console.log(data) //should output the xml, right?
},
error: function(xhr, txt, err) {
console.log(err) //I always end up here...
}
});
I've also tried using the get method from jQuery
$.get("http://kuler-api.adobe.com/rss/search.cfm",
{"searchQuery":"blue", "key":"MyKey"},
function(data) {
console.log(data);
}
);
Am I missing something here?
I realise this was posted a while back, if you're still stuck the problem is you can't use ajax to directly load it due to security.
I had a similar issue.
Quickest solution is to load the rss with a php file and echo the result as xml. Then just load that php file from jquery.
See this link for explanation and example http://kneedeepincode.com/topics/parsing-external-rss-feeds-with-jquer y/
Ben
North America
Europe, Middle East and Africa
Asia Pacific