Hi, all:

I want to create a pop-up edit page. First I want to fill the form with original data, so I need load data. My page work fine in Firefox (value is set in the field), however in IE6 I can not make it work. Any suggestion would be really appreciated.

Here is the example link:

http://www.feyasoft.com -> Tutorials -> Ext tutorial -> Ext Grid Form Dialog Demo

Code:
    // get information from DB and set form now...
    var user_data = new Ext.data.Store({
        proxy: new Ext.data.ScriptTagProxy({url:'demouser/listDemouser.htm?action=loadData&id=' + selectedId}),
        reader: new Ext.data.JsonReader({},['id','username','lastname','firstname','password','email','birthday','note']),
        remoteSort: false
    });  
    
    var lastname = new Ext.form.TextField({
        fieldLabel: 'Last Name',
        allowBlank: false,
        name: 'lastname',
        anchor: '90%'  
    });
    
    // create form panel
    var formPanel = new Ext.form.FormPanel({
     
        baseCls: 'x-plain',
        labelWidth: 75,
        url:'demouser/listDemouser.htm?action=editDemouser',

        items: [lastname]
    });
    
    // load data now
    user_data.on('load', function() {
        lastname.setValue(user_data.getAt(0).data['lastname']);
    });
    user_data.load();     

    var window = new Ext.Window({
        title: 'Edit Existing Demo User',
        width: 500,
        height:300,
        minWidth: 300,
        minHeight: 250,
        layout: 'fit',
        plain:true,
        bodyStyle:'padding:5px;',
        buttonAlign:'center',
        items: formPanel,

        buttons: [{
            text: 'Save'
        },{
            text: 'Cancel',
            handler: function(){window.hide();}
        }]
    });

    window.show();
Seem "user_data.on('load' " function is not called in IE6.

Thanks in advanced for your help.

Regards!

Fenqiang Zhuang