Forum


23:00

18/10/2008

Hi all
Grid not show in Internet Explorer version IE6 but it show in Mozilla 3.0.5.
The code is given below
jQuery("#usercreationgrid").jqGrid({
url: './interfaceengine.xmlcreator?interface_id=UserCreation&part_id=usercreationgrid',
datatype: "xml",
colNames:[ ' STUDENT ID ' ,'FIRST NAME','MIDDLE NAME','LAST NAME','CREATION DATE','PASSWORD','ACCOUNT STATUS'],
colModel:[
{name:'student_id',index:'1',editrules:{required:true,},search:true,width:105,key:true, hidden:false, editable:true,edittype:"text",editoptions: {size:30}},
{name:'fname',index:'2',editrules:{required:true,},search:true,width:105,key:false, hidden:false, editable:true,edittype:"text",editoptions: {size:30}},
{name:'mname',index:'3',editrules:{required:false,},search:true,width:105,key:false, hidden:false, editable:true,edittype:"text",editoptions: {size:30}},
{name:'sname',index:'4',editrules:{required:true,},search:true,width:105,key:false, hidden:false, editable:true,edittype:"text",editoptions: {size:30}},
{name:'creation_date',index:'5',editrules:{required:false,},search:true,width:105,key:false, hidden:false, editable:false,edittype:"text",editoptions: {size:30}},
{name:'password',index:'6',editrules:{required:true,},search:true,width:105,key:false, hidden:false, editable:true,edittype:"text",editoptions: {size:30}},
{name:'account_stat',index:'7',editrules:{required:true,},search:true,width:105,key:false, hidden:false, editable:true,edittype:"select",editoptions: {value:"Active:Active;Inactive:Inactive"}}],
rowNum:6,
rowList:[2,6,12,15],
pager: jQuery('#pagered'),
imgpath: '../coreadmin/themes/basic/images',
sortname: 'student_id',
viewrecords: true,
sortorder:"desc",
caption:" CURRENTLY DEFINED USER",
editurl:"./interfaceengine.DBGridQueryEditorServlet?interface_id=UserCreation&part_id=usercreationgrid"
});
jQuery("#usercreationgrid").navGrid('#pagered',
{}, //options
{height:280,reloadAfterSubmit:false,modal: true, closeAfterEdit: true,
onclickSubmit : function(eparams)
{
var ret={};
ret={current_login_user_id:'partha'};
return ret;
},
afterSubmit : function(xhr,postdata)
{
var x=document.getElementById('postdatamessage');
$.blockUI({ message: xhr.responseText });
$('.blockOverlay').attr('title','Click to unblock').click($.unblockUI);
return [true,xhr];
},
onInitializeForm: function ( formid )
{
console.log(formid);
}
},
{height:280,reloadAfterSubmit:true,modal: true, closeAfterAdd: true,
onclickSubmit : function(eparams)
{
var ret={};
ret={current_login_user_id:'partha'};
return ret;
},
afterSubmit : function(xhr,postdata)
{
var x=document.getElementById('postdatamessage');
$.blockUI({ message: xhr.responseText });
$('.blockOverlay').attr('title','Click to unblock').click($.unblockUI);
return [true,xhr];
},
onInitializeForm: function ( formid ) {
console.log(formid);
}
},
{reloadAfterSubmit:true,
onclickSubmit : function(eparams)
{
var ret={};
var sr=jQuery("#usercreationgrid").getGridParam('selrow');
rowdat=jQuery("#usercreationgrid").getRowData(sr);
ret={student_id:rowdat.student_id,current_login_user_id:'partha'};
return ret;
},
afterSubmit : function(xhr,postdata)
{
var x=document.getElementById('postdatamessage');
$.blockUI({ message: xhr.responseText });
$('.blockOverlay').attr('title','Click to unblock').click($.unblockUI);
return [true,xhr];
}},
{sopt:['cn','bw','eq','ne','lt','gt','ew']}
);
please help me as soon as possible
Thanks
Shibaji
02:17

Moderators
30/10/2007

Hello,
Check for unneeded commas in your code.
Regards
Tony
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.
Hi Tony, I have the same problem, IE7 & jqGrid 3.5.2 Object expected, I see table but none of date has shown (only in IE) FF, Opera, Chrome works great. I know IE have a problem with some comma's in the end, but I checked my all code I don't have unwanted comma. do you have any idea? I use jquery 1.3.2 mininied
Regards
Paul
Ok, forget about problem.
The only problem I have is php file which generate xml output have session time limit which in IE expired sÄ… no xml file could be loaded.
W wrote this so maybe someone have similar problem with ERROR Object Expected
Most Users Ever Online: 715
Currently Online:
46 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