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
Grid data not shown in IE6
01/12/2008
02:46
Avatar
invincible_virus
New Member
Members
Forum Posts: 2
Member Since:
01/12/2008
sp_UserOfflineSmall Offline

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

01/12/2008
03:32
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

01/12/2008
04:57
Avatar
invincible_virus
New Member
Members
Forum Posts: 2
Member Since:
01/12/2008
sp_UserOfflineSmall Offline

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

01/12/2008
05:41
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information