Skip navigation
Pål Strøm
Currently Being Moderated

Getting themes by AJAX

Oct 12, 2009 1:08 PM

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?

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points