Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
why jqgrid can display in fire but IE cannot?
10/09/2010
13:04
Avatar
wangzhen
Member
Members
Forum Posts: 8
Member Since:
10/09/2010
sp_UserOfflineSmall Offline

Hi,the jqgrid data can display in the fire,but IE cannot.why?

is the problems if IE version?

Thank you for any suggestion.

10/09/2010
13:33
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Which data? Which version of IE? Which version of jqGrid you use? Without having full code example including HTML, JavaScript code and your JSON/XML data as a text file (if you use JSON or XML) nodody are able to guess wich problem you has and help you.

Regards
Oleg

10/09/2010
13:33
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Which data? Which version of IE? Which version of jqGrid you use? Without having full code example including HTML, JavaScript code and your JSON/XML data as a text file (if you use JSON or XML) nodody are able to guess wich problem you has and help you.

Regards
Oleg

11/09/2010
15:08
Avatar
wangzhen
Member
Members
Forum Posts: 8
Member Since:
10/09/2010
sp_UserOfflineSmall Offline

Hi,thanks!the data is JSON,the IE is IE6 and the jqGrid is 3.6.All the code is right,it can display in the fire.

11/09/2010
21:18
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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.

13/09/2010
05:20
Avatar
wangzhen
Member
Members
Forum Posts: 8
Member Since:
10/09/2010
sp_UserOfflineSmall Offline

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
  })
  }); 

13/09/2010
05:25
Avatar
wangzhen
Member
Members
Forum Posts: 8
Member Since:
10/09/2010
sp_UserOfflineSmall Offline

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>

13/09/2010
09:27
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

First of all, you should always include !DOCTYPE before the <html> element (see /jqgridwiki/doku.php?id=wiki:first_grid#html_file as an example). If it would be not help, please let me know.

Regards

Oleg

13/09/2010
11:56
Avatar
wangzhen
Member
Members
Forum Posts: 8
Member Since:
10/09/2010
sp_UserOfflineSmall Offline

Hello,OlegK,Thank you very much!

I have do it as your,and have another error that it has "," in the jqgrid.I delete it,then the data can display.Laugh

19/09/2010
05:05
Avatar
waiting
Member
Members
Forum Posts: 40
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

IE dont support the last elm end with comma (,) in Array

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information