jquery ingrid使用中的问题

shuyisheng 2010-02-04 10:38:31
$(document).ready(
function() {
$("#ZBinfo").ingrid({
url: 'RunRecLogList.aspx',
type:'POST',
height: 200,
minColWidth: 50,
initialLoad: true,
savedStateLoad: true,
colWidths: [150,150,150,150,150,150,150], // width of each column
rowClasses: ['grid-row-style1','grid-row-style1','grid-row-style2','grid-row-style1','grid-row-style1','grid-row-style3'],
//onRowSelect: function(tr, selected){
//var str = selected ? 'SELECTED' : 'UNSELECTED';
//var tr_html = $(tr).html();
//alert( str + ' Row. InnerHTML is : ' + tr_html);
//},
sorting: false,
resizableCols: true,
paging: false,
recordsPerPage: 5,
totalRecords: 10,
extraParams: {type: 'all',params:'none'}
});
这样没有问题,第一次初始化。当我查询按钮查询时,执行别外一个JS函数,代码如下:
<script type="text/javascript">
function RunTreeNodeSel(obj)
{

$("#ZBinfo").ingrid({
url: 'RunRecLogList.aspx',
type:'POST',
height: 200,
minColWidth: 50,
initialLoad: false,
savedStateLoad: true,
colWidths: [150,150,150,150,150,150,150], // width of each column
rowClasses: ['grid-row-style1','grid-row-style1','grid-row-style2','grid-row-style1','grid-row-style1','grid-row-style3'],
sorting: false,
resizableCols: true,
paging: false,
recordsPerPage: 5,
totalRecords: 10,
extraParams: {type : 'Query',params:obj}
});
alert(obj)
// RunRecLogView.GetXMLSql("RunLog.xml",obj);
}
</script>

obj是查询参数,可以弹出来,可这个代码并没有执行,还是以前那个表格的数据。调试也没有执行到'RunRecLogList.aspx'这是为什么了。还是写错了?
...全文
359 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
shuyisheng 2010-02-04
  • 打赏
  • 举报
回复

alert("高手回话啊")
shuyisheng 2010-02-04
  • 打赏
  • 举报
回复
没高手在啊。急!

87,914

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧