exception [Permission denied to...]
今天碰到问题:
Error: [Exception... "'Permission denied to set property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]"
过程如下:
//test.html
<html>
<head>
<title></title>
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript">
function request(){
var url = "http://localhost:8080/app/requestpage.html";
var ma = new Ajax.Request(url, {method: 'get', onComplete: showResponse});
}
function showResponse(data){
var rt = data.responseText;
$('testarea').innerHTML = rt;
}
</script>
</head>
<body>
<input type="button" value="test" onClick="request()"/>
<div id="testarea">
</div>
</body>
</html>
//requestpage.html
<table border="1">
<tr>
<td><input type="text" size="10" value="defalut" onClick="alert('test');"/></td>
</tr>
</table>
在firefox 下访问 test.html 后点击 按钮,出现如下错误:
Error: [Exception... "'Permission denied to set property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]"
解决办法:
在input 中添加属性:autocomplete="off"
irini
2007-04-05 16:09:01
评论:0
阅读:176
引用:0
