English 中文(简体)
AJAX sent is given “Access tostric URI Den” Code: “1012” nsresult: “0x805303f4 (NS_ERROR_DOM_BAD_URI)”
原标题:AJAX send is giving "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)"
  • 时间:2011-11-18 04:46:18
  •  标签:
  • ajax
  • firefox

我知道这一点以前就已公布,但答案并不能解决我的问题。 我可以指出正在发生什么。 造成错误的唯一东西是回想(null),这对我来说是有意义的。 我如此混淆。

这里是我手脚的手法。

function changeImg(dir) {
var img = document.getElementById("pic");
var src = img.src.substring(img.src.lastIndexOf("/")+1,img.src.length);
var url =  ajax/ +src+ / +dir;
var req = new XMLHttpRequest();
req.onreadystatechange = function() {
    if(req.readyState == 4 && req.status == 200)
        updateImg(req);
}
req.open("GET", url, true);
req.send(null);
}

function updateImg(req) {
var xml = req.responseXML.documentElement;
var src = xml.textContent;
document.getElementById( pic ).src = src;
}

我用喷气式喷气机与宇宙航空和宇宙航空研究开发机构进行这种检测,3,但我用自己的服务器对代码进行了测试。 我可以走过第18条——————

任何帮助都将受到高度赞赏。

感谢。

P.S. I ve试图在周围进行移动、开放和渗透,但并没有固定任何东西。

问题回答

暂无回答




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签