Forum
21:18
10/08/2009
Sorry, but your answer looks like: my pants are blue, my purse is broun. How much money exactly I have in the purse?
I coud answer on your question I have a jqGrid which is able to displayed in IE6. Is it helps you to solve your problem?
If you want a help from sombody you have to give enough information to reproduce your problem. You should post full HTML and JavaScript code of your application. If you get JSON data from the server, you should save the data as a text and post the data also. Then one could seve the data in a file and get simulate responce from your server with JSON data.
Regards
Oleg
P.S. I am just a user of jqGrid and I have not all old versions of jqGrid, so you should use last released version of jqGrid (3.7.2) if you want to have answer not only from Tony - the developer of jqGrid.
05:20
10/09/2010
hi,OlegK.thanks.
the js file as that:
var userlist='{"total":1,"rows":[{"user.password":"111111","user.userName":"aaaaaa","user.userId":22,"id":1},{"user.password":"123456","user.userName":"abc","user.userId":41,"id":2},{"user.password":"admin","user.userName":"admin1","user.userId":2,"id":3},{"user.password":"123456","user.userName":"admin3","user.userId":3,"id":4},{"user.password":"123456","user.userName":"admin5","user.userId":4,"id":5},{"user.password":"123456","user.userName":"admin4","user.userId":5,"id":6},{"user.password":"admin","user.userName":"admin2","user.userId":1,"id":7},{"user.password":"2222222222","user.userName":"qqqqqqqqqq","user.userId":23,"id":8}],"records":8,"page":1}';
$(document).ready(function(){
jQuery("#userlist").jqGrid({
datatype: 'jsonstring',
datastr: userlist,
colNames: ['username','password','userId'],
colModel: [
{name: 'user.userName',index: 'user.userName',align: 'center',
editable:true, edittype:'text',editoptions:{size:20,maxlength:20},
width: 400
},{name: 'user.password',index: 'user.password',align: 'center',
editable:true, edittype:'text',editoptions:{size:20,maxlength:20},
editrules:{required:true},
width: 400
},{name: 'user.userId', index: 'user.userId',
search: false,
sortable: false}],
rowNum: 10,
rowList: [10, 20, 30],
pager: "users",
sortname: 'id',
viewrecords: true,
rownumbers:true,
sortorder: "desc",
jsonReader: {
repeatitems: false,
},
caption: "User List",
height: 300,
toolbar: [true, "top"],
}).navGrid('userlist', {view: true, viewtext: "view",edit: true,edittext:"edit", add: true, addtext: "add", del: true,deltext:"del",search:false,refresh:false
}, {
multipleSearch: true
}, {
closeOnEscape: true
})
});
05:25
10/09/2010
and the html code:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<html>
<head>
<title>查看用户</title>
<script type="text/javascript" src="scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="scripts/userlist.js"></script>
<script type="text/javascript" src="scripts/i18n/grid.locale-cn.js"></script>
<script type="text/javascript" src="scripts/jquery.jqGrid.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="scripts/jquery.bgiframe.pack.js"></script>
<script type="text/javascript" src="scripts/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="scripts/jquery.layout.js"></script>
<script type="text/javascript" src="scripts/jquery.blockUI.js"></script>
<script type="text/javascript" src="scripts/jquery.divcorners.min.js"></script>
<script type="text/javascript" src="scripts/jquery.pngFix.pack.js"></script>
<script type="text/javascript" src="scripts/jQuery.niceTitle.js"></script>
<script type="text/javascript" src="scripts/jquery.form.js"></script>
<script type="text/javascript" src="scripts/jquery.livequery.js"></script>
<script type="text/javascript" src="scripts/jquery.hiAlerts-min.js"></script>
<script type="text/javascript" src="scripts/jquery.hoverIntent.minified.js"></script>
<script type="text/javascript" src="scripts/jquery.autocomplete.js"></script>
</head>
<body>
<table id="userlist"></table>
<div id="users" align="center"></div>
</body>
</html>
Most Users Ever Online: 715
Currently Online:
55 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66