gpt4 book ai didi

java - JQGrid - 使用 IE9 加载 JQuery 数据

转载 作者:行者123 更新时间:2023-11-30 11:44:43 25 4
gpt4 key购买 nike

我制作了一个 JQgrid,它调用 Ajax 以在加载页面时获取数据。但在 IE9 中,问题是它不是在加载表单时加载数据,而是在我重新加载页面时完成相同的过程,我能够在网格中看到数据。 IE9 或 Grid 是否有问题?它在所有其他浏览器中显示。

它显示的是没有数据的空白网格。

我的网格定义如下。

jQuery(document).ready(function(){
jQuery("#internetusagerecords").jqGrid({
height:250,
datatype: 'local',
colNames:['IP Address','Start Time',
<% if (isHttpMacFlowOn){%>
'MAC Address',
<% } %>
'Stop Time','Used Time','Effective Session Time','Downloaded Data','Uploaded Data','Total Transfer'],
colModel :[
{name:'ip', index:'ip', sorttype:'text'},
{name:'starttime', index:'starttime', sorttype:'int',align:"right"},
<% if (isHttpMacFlowOn){ %>
{name:'macaddress', index:'macaddress', sorttype:'text', align:"left"},
<% } %>
{name:'stoptime', index:'stoptime', sorttype:'int',align:"right"},
{name:'usedtime', index:'usedtime', sorttype:'text', align:"right"},
{name:'effectivesession', index:'effectivesession',sorttype:'date', align:"right"},
{name:'download', index:'download', sorttype:'int',align:"right"},
{name:'upload', index:'upload',sorttype:'int',align:"right"},
{name:'totaltransfer', index:'totaltransfer',sorttype:'int',align:"right"}],
pager:jQuery('#internetusagepager'),
rowNum:10,
sortname: 'ip',
autowidth:true,
sortorder: "asc",
rowList:[10,20,50,100,200],
viewrecords: true,
loadonce:false,
grouping:true,
footerrow: true,
userDataOnFooter: true,
gridComplete: function call1(){},
/*
loadComplete: function(data) {
var costsum = jQuery("#records").jqGrid('getCol', 'estimatedcost', true, 'sum');
var calldurationsum = jQuery("#records").jqGrid('getCol', 'seconds', true, 'sum');
var unitssum = jQuery("#records").jqGrid('getCol', 'units', true, 'sum');
jQuery("#records").jqGrid('footerData','set', {starttime: 'Total:', estimatedcost: costsum,seconds: calldurationsum,units: unitssum});
},
*/
caption:'Internet Usage Details'
});
});

最佳答案

实际上旧的 JQuery 包有问题。现在已在 JQGrid 库中解决。

关于 JQueryJQgird 和 IE9,我也遇到了同样的问题,现在已经解决了。

我下载了新包并检查了那个东西然后它解决了我的 IE9 问题。

关于java - JQGrid - 使用 IE9 加载 JQuery 数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10649328/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com