惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
罗磊的独立博客
小众软件
小众软件
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
博客园_首页
N
Netflix TechBlog - Medium
B
Blog
Recent Announcements
Recent Announcements
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
L
LangChain Blog
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Last Week in AI
Last Week in AI
Jina AI
Jina AI
V
V2EX
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
博客园 - 【当耐特】

博客园 - Liu Jian

C#的栈(Stack)和堆(Heap) A low-level Look at the ASP.NET Architecture(引自:http://www.west-wind.com/presentations/howaspnetworks/howaspnetworks.asp 从底层了解ASP.NET架构(引自:http://tech.it168.com/msoft/2007-12-24/200712241034626.shtml) [Joe 原创]Web Control 开发系列(四) Validation机制 [转贴]使用ADO.NET2.0提升数据交互性能(http://dotnet.chinaitlab.com/ADONET/739268.html) - Liu Jian - 博客园 Define a Custom Control Builder for a Custom Server Control(http://www.aspnetpro.com/newsletterarticle/2006/05/asp200605de_l/asp200605de_l.asp) [Joe 原创]Web Control 开发系列(三) 解析IPostBackEventHandler和WebForm的事件机制 [Joe 原创] Web Control 开发系列(二) 深入解析Page的PostBack过程和IPostBackDataHandler [Joe 原创]Web Control 开发系列(一) 页面的生命周期 Web Control 开发系列 之 前言 关于ResolveClientUrl和ResolveUrl的使用 问题 (http://www.cnblogs.com/borllor/archive/2008/02/25/1081037.html) ASP.NET MVC 学习: 视图(http://whx.tzgt.gov.cn/newOperate/html/1/12/123/12058.html) ASP.NET MVC框架(第一部分)(http://blog.joycode.com/scottgu/archive/2007/11/14/111385.aspx) (转贴的)如何开发Firefox插件 Cross Domain XmlHttpRequests (http://benreichelt.net/blog/2005/4/11/Cross-Domain-XmlHttpRequests-Ajax/) 跨域(cross-domain)访问 cookie (读取和设置)(http://www.dup2.org/node/384) ajax跨域和js跨域解决方案(http://hi.baidu.com/longniao/blog/item/ce5e9cca3e2a4782c817684d.html) Javascript 内存泄漏问题(http://hi.baidu.com/webworker/blog/item/25f9f0dcf14d51a2cc116671.html) JavaScript内存泄漏(http://www.blogjava.net/tim-wu/archive/2006/05/29/48729.html)
Cross Domain XmlHttpRequests (http://benreichelt.net/blog...
Liu Jian · 2008-06-17 · via 博客园 - Liu Jian

11 Apr, 2005  Uncategorized

One problem you run into when using client side xml calls is the
issue of getting some xml from a different domain.  Making a
cross domain request is simply denied in Firefox, and I believe it is
denied in SP2 IE, however pre-SP2 you were just alerted to the fact
that a cross domain request was being made.  On some of our pages
we want to include Yahoo news feeds that
relate to the content on the page.  Since we couldn�t just make
the request (Response.Redirects also do not work), I wrote a little
page that takes in another url as a querystring parameter, makes its
own web request to that page, and streams the content down to the
client.  This allows you to get any feed from any domain you want,
so it can come in pretty handy for the scenario I described
above.  Here is the code from the intermediate page: 

UPDATE:
Sorry for the poor formatting, I guess I’m not using CopySourceAsHTML
in the correct way. If you view the post on my blog page, the
formatting is intact.

You�ll notice in the �GetExternalFeed� method, I�m UrlDecoding the
querystring parameter to create a valid url from the string.  Make
sure to use the javascript �escape
function on your querystring parameter before making the request,
otherwise any �&� in the url will be lost and your url will be
invalid.

So thats all there is to it, now you can get xml feeds from anywhere on the web!