YQL importing PHP page from another server- giving error

I am using YQL to bring in a PHP from another server using the code below. This works fine the majority of the time, however there are periods where all users recieve the error.

I have checked the stability of both of our webistes - it seems to be this YQL link causing the issues and instability.

Does anyone have ideas on why this is occuring?

Ive looked at possible query limits but this affects users form many different IP addresses.

function doAjax(url){ if(url.match('^http')){ $.getJSON("http://query.yahooapis.com/v1/public/yql?"+ "q=select%20*%20from%20html%20where%20url%3D%22"+ encodeURIComponent(url)+ "%22&format=xml'&callback=?", function(data){ if(data.results[0]){ var data = filterData(data.results[0]); container.html(data); } else { var errormsg = '

Error: could not load the page.

'; container.html(errormsg); } } ); } else { $('#newsContainer').load(url); } } function filterData(data){

return data;

} });

0 Replies

Recent Posts

in YQL