1 Reply Latest reply: Jul 4, 2011 10:39 PM by Run Pixel Run RSS

    Getting themes by AJAX

    Pål Strøm Community Member

      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?