geniiyr
7 Sep 2007, 7:43 AM
the xml document is this:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<getAllUserResponse xmlns="http://services.fundament.com">
<getAllUser>
<ns1:User xmlns:ns1="http://pdo.fundament.com">
<idno xmlns="http://pdo.fundament.com">idnovalue</idno>
<code xmlns="http://pdo.fundament.com">codevalue</code>
<name xmlns="http://pdo.fundament.com">namevalue</name>
<remark xmlns="http://pdo.fundament.com">remarkvalue</remark>
<status xmlns="http://pdo.fundament.com">statusvalue</status>
</ns1:User>
</getAllUser>
</getAllUserResponse>
</soap:Body>
</soap:Envelope>
and the grid is defined as this:
var Plant = Ext.data.Record.create([
{name: 'idno', mapping: 'idno',type: 'string'},
{name: 'name', mapping : 'name',type: 'string'},
{name: 'code', mapping: 'code',type: 'string'},
{name: 'remark', mapping:'remark',type:'string'},
{name: 'status', mapping:'status',type:'string'}
]);
// create the Data Store
var ds = new Ext.data.Store({
proxy: new Ext.data.MemoryProxy(),
reader: new Ext.data.XmlReader({
record: 'User'
}, Plant),
reloads:function(data){
this.proxy.data = data;
this.reload();
}
});
ds.load();
var cm = new Ext.grid.ColumnModel([
{header: 'code', width: 100,dataIndex: 'code'},
{header: 'name', width:100,dataIndex:'name'},
{header: 'remark', width: 200, dataIndex: 'remark'},
{header: 'status', width: 100, dataIndex: 'status'}
]);
cm.defaultSortable = true;
userGrid = new Ext.grid.EditorGrid('userGrid',{
ds: ds,
cm: cm,
selModel: new Ext.grid.RowSelectionModel({singleSelect:true}),
enableColLock:false,
refresh:function(xmldata){
this.getDataSource().reloads(xmldata);
});
userGrid.render();
it can work well in firefox, but it dos't work in IE6.0! help me, please!!
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<getAllUserResponse xmlns="http://services.fundament.com">
<getAllUser>
<ns1:User xmlns:ns1="http://pdo.fundament.com">
<idno xmlns="http://pdo.fundament.com">idnovalue</idno>
<code xmlns="http://pdo.fundament.com">codevalue</code>
<name xmlns="http://pdo.fundament.com">namevalue</name>
<remark xmlns="http://pdo.fundament.com">remarkvalue</remark>
<status xmlns="http://pdo.fundament.com">statusvalue</status>
</ns1:User>
</getAllUser>
</getAllUserResponse>
</soap:Body>
</soap:Envelope>
and the grid is defined as this:
var Plant = Ext.data.Record.create([
{name: 'idno', mapping: 'idno',type: 'string'},
{name: 'name', mapping : 'name',type: 'string'},
{name: 'code', mapping: 'code',type: 'string'},
{name: 'remark', mapping:'remark',type:'string'},
{name: 'status', mapping:'status',type:'string'}
]);
// create the Data Store
var ds = new Ext.data.Store({
proxy: new Ext.data.MemoryProxy(),
reader: new Ext.data.XmlReader({
record: 'User'
}, Plant),
reloads:function(data){
this.proxy.data = data;
this.reload();
}
});
ds.load();
var cm = new Ext.grid.ColumnModel([
{header: 'code', width: 100,dataIndex: 'code'},
{header: 'name', width:100,dataIndex:'name'},
{header: 'remark', width: 200, dataIndex: 'remark'},
{header: 'status', width: 100, dataIndex: 'status'}
]);
cm.defaultSortable = true;
userGrid = new Ext.grid.EditorGrid('userGrid',{
ds: ds,
cm: cm,
selModel: new Ext.grid.RowSelectionModel({singleSelect:true}),
enableColLock:false,
refresh:function(xmldata){
this.getDataSource().reloads(xmldata);
});
userGrid.render();
it can work well in firefox, but it dos't work in IE6.0! help me, please!!