Use Ajax as an RSS Scanner

Source: Internet
Author: User

In the past two days, Ajax was used as an RSS reader to learn about Ajax usage.

 

The technology is not moldy until the sun is dried out.

Ajax seems a lot unfamiliar, alas. No way.

The main interface is still ugly. Haha ......

The lower-left corner shows the place where RSS is added. After the RSS is added, it is displayed in the upper-left corner. The list displayed in the upper-left corner is in the form of a link, click the link to display the details of the currently subscribed RSS in the right div ......

 

For the first time, I encountered a lot of problems, such as how to solve the innerhtml display problem and how to get RSS content. At the same time, the most common cause is the running principle of Ajax.

After all, all of them are Ajax. Haha, and then I will repeat ^ to see how many theoretical things are better than implementing one by myself. After all, things in the process cannot be seen theoretically. at least I think so,

Reading a book or reading a project in the future cannot be taken for granted. You must exercise and master it yourself. ^

 

Another problem persists. It seems that AJAX cannot be accessed across domains now, so I also use. aspx to obtain RSS content. TheCodeAs follows,

  string  url = request. querystring [ "url" ]; Uri uri =  New  uri (URL ); webrequest wR = webrequest. create (URI); stream S = Wr. getresponse (). getresponsestream (); streamreader sr =  New  streamreader (S, encoding. default);  string  rsscontent = sr. readtoend (); Sr. close (); S. close (); response. write (rsscontent); 

This is also from the Internet. Haha. So this is also a harvest.

If you don't know how to use ajax to obtain RSS content, please kindly advise ~~~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.