Forum


Hi,
I have prepared an xml grid. It works pretty fine in FF2 but no grid data is shown in IE6.
Here the code snippet -
$("#ModifyEUGTable").jqGrid({
datatype: 'xml',
url : 'eug_sample.xml',
editurl: "server.php",
colNames:['Destination Customer ID','Destination Domain ID', 'Destination EUG', 'Relation Type', 'Inter-EUG SSAR auto-generation'],
colModel :[
{name:'customerId', index:'customerId', width:160, xmlmap:'customerId'},
{name:'domainId', index:'domainId', width:160, xmlmap:'domainId'},
{name:'destinationEug', index:'destinationEug', width:130, xmlmap:'destinationEug', editable:true, editrules:{required:true}},
{name:'relationType', index:'relationType', width:100, xmlmap:'relationType', editable:true, edittype:'select', editoptions: { value: "T:Transmit Only; R:Receive Only; B:Both" } },
{name:'ssar', index:'ssar', width:220, sortable:false, xmlmap:'ssar', editable:true, edittype:'select', editoptions: { value: "Disable:Disable; Enable:Enable"} }],
rowNum:10,
rowList:[10,20,30],
viewrecords: true,
imgpath: '../../plugins/jqGrid/themes/basic/images',
loadonce: true,
caption: 'Modify Inter EUG Relations',
toolbar: [true,'top'],
onSelectRow: function(id){
if(id && id!==lastSel){
jQuery('#ModifyEUGTable').restoreRow(lastSel);
lastSel=id;
}
jQuery('#ModifyEUGTable').editRow(id, true);
},
xmlReader: {
root:"rows",
row:"row",
repeatitems:false,
page:"EUGRelations>currentpage",
total:"EUGRelations>totalpages",
records:"EUGRelations>totalrecords",
id:"asin" }
});
XML file -
<?xml version='1.0' encoding='utf-8'?>
<EUGRelations>
<currentpage>1</currentpage>
<totalpages>10</totalpages>
<totalrecords>20</totalrecords>
<rows>
<row>
<customerId>Customer001</customerId>
<domainId>2</domainId>
<destinationEug>EUG101</destinationEug>
<relationType>T</relationType>
<ssar>Disable</ssar>
<asin>10101</asin>
</row>
<row>
<customerId>Customer001</customerId>
<domainId>2</domainId>
<destinationEug>EUG102</destinationEug>
<relationType>T</relationType>
<ssar>Disable</ssar>
<asin>10102</asin>
</row>
</rows>
</EUGRelations>
can anyone help me find out why it doen't work in IE.
Thanks,
Saurabh
03:32

Moderators
30/10/2007

Hello,
If you do this as local file, this will not work in IE. Also there are a lot
of messages regarding this in jquery google grup.
To work this in IE you should use web server.
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.
Thanks Tony,
I saw those posts, where people are using web-server and someone suggested them to add 'text/xml' as content type in response.
But, I thought that it should not be applicable for me as I am using a local file.
can we call it a bug or limitation?
Anyways, thanks for making such a useful plug-in. I really appreciate your effort.
Regards,
Saurabh
05:41

Moderators
30/10/2007

Hello,
The alternative in this way is to use xmlstring.
Read the docs
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.
Most Users Ever Online: 715
Currently Online:
102 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