2013-03-11 10 views
1

我在使用jQueryUI测试“连接”可排序功能时遇到了Firebug控制台上的错误。这是我收到错误的类型,只要我拖动表行:为什么我会在测试jQueryUI排序时得到“Permission Denied”Firebug控制台错误?

Error: Permission denied to access property 'sortableItem' 
    target[ name ] = copy; 

如果我把萤火虫关,可排序的功能似乎工作就好了。

下面是我测试的代码:

<!doctype html> 
<html lang="en"> 
<head> 
<meta charset="utf-8" /> 
<title>ja test</title> 

<script src="http://code.jquery.com/jquery-1.9.1.js"></script> 
<script src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"></script> 
<script> 
$(document).ready(function(){ 
$(".connected").sortable({ 
     items: 'tbody > tr', 
     connectWith: ".connected", 

     update: function(e, ui){ 
       // AJAX code will go here 
       alert("hello"); // testing only 
       } 

     }); 
}); 
</script> 
</head> 
<body>  

<table border="0" width="50%" class="connected" id="unranked"> 
    <thead> 
      <tr class="body-bold"> 
      <td>id</td> 
      <td>Start Date </td> 
      <td>End Date </td> 
      <td>&nbsp;</td> 
      </tr> 
    </thead> 
    <tbody id="sortableUnranked"> 
     <tr id="contentid-9896"> 
      <td>A9896</td> 
      <td>2013-02-21</td> 
      <td>2013-03-31</td>     
      <td><input class="edit-button" type="button" name="edit" value="Edit"></td>   
     </tr> 
    </tbody> 
</table> 

回答

0

原来是一个小于当前版本的Firebug的附加FireQuery。我安装了1.2版本(并且Firefox报告说我所有的插件都是最新的)。当我访问FireQuery测试页面(测试FireQuery的功能):http://firequery.binaryage.com/test/时,我发现它也显示Firebug错误,最新版本1.3的发行说明表示这些更改旨在修复与Firefox安全相关的问题模型。当我安装FireQuery 1.3时,FireQuery测试页面没有错误地工作,我的脚本也一样。

相关问题