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> </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>