Forum
10:53
24/09/2010
Hi tony,
I encountered the error "Object doesn't support this property or method" when using jqgrid 3.8 in IE (FF is fine).
The error appears inside jquery-1.4.2.min.js, code segment underlined:
Here is the code in JSP:
<link href="css/ui.jqgrid.css" media="screen" type="text/css" rel="stylesheet">
<!-- 'grid.locale' js must come first -->
<script src="js/jqgrid/grid.locale-en.js" type="text/javascript" ></script>
<script src="js/jqgrid/jquery.jqGrid.min.js" type="text/javascript" ></script>
<script type="text/javascript" >
$(function(){
$("#test").text('<s:property value="remoteurl" />');
$("#list2").jqGrid({
url:'<s:property value="remoteurl" />',
datatype: "json",
mtype: "POST",
colNames:['Inv No','Colour','B Price'],
colModel:[
{name:'id',index:'id', width:55},
{name:'colour', index:'colour', width:90},
{name:'bottlePrice',index:'bottlePrice', width:90},
],
jsonReader : {
root:"resultList",
page: "page",
total: "total",
records: "record",
id: "id",
repeatitems: false
},
ajaxGridOptions:{async:false},
rowNum:10,
rowList: [15,30,60],
pager: '#pager2',
sortname: 'id',
viewrecords: true,
sortorder:"desc",
caption:"Wine List"
});
});
</script>
I've used Struts2 tag lib, here is the "remoteurl":
One day has been passed and no progress is done. Please help, thanks!
10:12
Moderators
30/10/2007
HEllo,
This will not work in IE sinc of the not needed comma
colModel:[
{name:'id',index:'id', width:55},
{name:'colour', index:'colour', width:90},
{name:'bottlePrice',index:'bottlePrice', width:90}, <===== ERROR
],
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
24 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