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_Related Related Topics sp_TopicIcon
jqGrid dont works fine in IE
19/08/2011
23:52
Avatar
rafaelzago
New Member
Members
Forum Posts: 1
Member Since:
19/08/2011
sp_UserOfflineSmall Offline

I have created a jqGrid and it works fine on FF, but i don't have the same result on IE.
The problem is that the grid load just the head on IE but dont load the content.

$(function(){
  $("#statuslist").jqGrid({
    url:'example.php',
    autowidth:true,
    datatype: 'xml',
    mtype: 'GET',
    colNames:['Serviço','Estado', 'Objetos','Primeiro','Inclusão','Dono','Identificador','Processado','Erro','Data do erro'],
    colModel :[
      {name:'servico',        index:'servico',         width:90, align:'right',    sortable: false},
      {name:'estado',         index:'estado',         width:90, align:'right',    sortable: false},
      {name:'QUANTIDADE',     index:'QUANTIDADE',     width:90, align:'right',    sortable: false},
      {name:'FILENAME',     index:'FILENAME',         width:90, align:'right',    sortable: false},
      {name:'AUTOENQTIME',     index:'AUTOENQTIME',    width:90, align:'right',    sortable: false},
      {name:'OBJUSERNAME',     index:'OBJUSERNAME',     width:90, align:'right',    sortable: false},
      {name:'OBJID',         index:'OBJID',             width:90, align:'right',    sortable: false},
      {name:'PROGRESS',     index:'PROGRESS',         width:90, align:'right',    sortable: false},
      {name:'LECODE',         index:'LECODE',         width:90, align:'right',    sortable: false},
      {name:'Datadoerro',     index:'Datadoerro',     width:90, align:'right',    sortable: false}
   ],
   xmlReader: {
      root:"result",
      row:"invoice",
      page:"invoices>currentpage",
      total:"invoices>totalpages",
      records:"invoices>totalrecords",
      repeatitems:false,
      id : "asin"
  },
    rowNum:-1,
    sortname: 'servico',
    sortorder: 'desc',
    viewrecords: true,
    gridview: true
  });
});

I load the grid with the method on my javascript using ajax

var mygrid = jQuery("#listlog")[0];
mygrid.addXmlData(xmlHttp.responseXML);

i don't really have the example.php file, mentioned on line
url:'example.php',
but works fine on FF, if i remove the line, the grid are not created.

i tryed to use
  $("#statuslist").jqGrid({
    autowidth:true,
    datatype: 'local',
    mtype: 'GET',

    and the line on my javascript
    
    var message = xmlHttp.responseText;
    jQuery("#statuslist").jqGrid('setGridParam',{datatype:'xml'}).trigger('reloadGrid');
    mygrid.addXmlData(xmlHttp.responseXML);
    
But didn't works too.

thanks

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
54 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