我正在使用jQuery来驱动我的AJAX UI.我有一个数据表,我想允许用户通过拖放来重新排序表中的列.我希望用户能够抓住列的标题并移动它.下面的数据行应该遵循.请注意,我不感兴趣,对数据进行排序或重新排序中排,但允许用户更改列的顺序.
有现成的解决方案吗?我尝试在<th>
元素上使用标准的jQuery可排序调用,但当然这不起作用.我浏览了jQuery插件网站,但没有找到任何东西.我需要编写一个jQuery插件吗?
编辑:请注意,jQuery,Dojo等(免费的)实际上是JS框架的唯一选择.我无法获得像ExtJS这样商业化的许可证.
我正在一个页面上有一个带有嵌套p,div和li的ol.Internet Explorer 6和7都在末尾的p元素(在li标签的最底部)之后呈现ol标记的数字,而不是在预期的最外层li的顶部.我正在使用PowerPC Mac,无法进行任何测试.是否有一些简单的CSS黑客使这个渲染与在Firefox中相同?
您可以在此处查看实时页面.我知道,我正在努力定位侧边栏.暂时忽略它.
标记如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/global.css" />
<link rel="stylesheet" type="text/css" href="css/whats_included.css" />
<script type="text/javascript" src="script/compliant_target_blank.js"></script>
<!--[if lte IE 5]>
<script type="text/javascript" src="script/ie_5_unsupported_warning.js"></script>
<![endif]-->
<!--[if gt IE 5]>
<link rel="stylesheet" type="text/css" href="css/ie_hacks/global.css" />
<![endif]-->
<title>
The Daily Plan-It, LLC - Home of the Tax MiniMiser
</title>
</head>
<body>
<?php include("includes/nav_bar.php") ?>
<div id="content">
<img src="images/title.png" alt="Tax MiniMiser …
Run Code Online (Sandbox Code Playgroud)