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 ~~~