I am developing a webpage where i need to get the html content of another cross-domain site. While google i got to know about YQL. But i am not familiar with YQl
. Can we solve this problem using Javascript
or Jquery
?
Your suggestions will be very helpful.
You can use WebClient class on server side to read the other page.
WebClient client = new WebClient();
string result = client.DownloadString(address);
That downloads the whole page output.
But i am not familiar with YQl
It is a web service.
Can we solve this problem using Javascript or Jquery?
You can use JavaScript to access YQL. You can't replace YQL with client-side JavaScript.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.