HELP!!: working in API but the link doesn't

hello everybody,

i would really appreciate any help you could give me.

the point of the code is to do a scrape of the site and return a xml file i can parse and then drop into the body of the page.

this is the call i made from the api: SELECT * FROM html WHERE url="http://angel.co/activity"

and got the link:http://query.yahooapis.com/v1/public/yql?q=%20SELECT%20*%20FROM%20html%20WHERE%20url%3D%22http%3A%2F%2Fangel.co%2Factivity%22

this is the code i am using. its not making it past the getJSON statement. i know im using xml and making a JSON call but ist always has worked and does work in several peaces of code I've implemented.

function doAjax(url){
            var data = filterData(data.results[0]);
document.getElementById('target').innerHTML = data; 
          } else {
            var errormsg = '<p>Error</p>';
document.getElementById('target').innerHTML = errormsg; 

0 Replies

Recent Posts

in YQL