阅读:3899回复:1
我在Moxilla里用XMLHttpRequest.open()时怎么说我没有足够的权限运呢?
我写了一面一段小程序:
<input name="aa" type="butten" value="dad" disabled = true> <script language="javascript"> <!-- var HR = false; if(window.XMLHttpRequest) { HR = new XMLHttpRequest(); alert("Not's IE"); } else { try { HR = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { HR = new ActiveXObject("Msxml2.XMLHTTP"); } alert("IE"); } try { HR.open("Get","http://sandheart.cnblogs.com/Rss.aspx",true); } catch(E) { alert(E); } HR.send(null); 在再运行这个程序的时候,返回错误为: 调用方法 XMLHttpRequest.open() 时权限不足 请问这是怎么回事? |
|
1楼#
发布于:2005-11-14 11:02
只能打开和网站同域名下的url
|
|