PDA

View Full Version : Reg Combo Box Population



sreekanthjup
8 Aug 2009, 3:53 PM
Hi,

I have a combo box which is populated from the database, it works fine in Mozilla but doesnt pop up in IE 8, It is showing loding corcle and just disappearing.

here is my code:

This is code of the store i defined:




var

supplier_combo_store =new Ext.data.Store({

id : 'supp_combo_data_store_id',

proxy : new Ext.data.HttpProxy(
{





url : 'find_supp.xsql',




method : 'POST'




}




),




reader :new Ext.data.XmlReader({




root : 'ROWSET',




record : 'ROW',




id : 'SUP_ID'




},




[

{name:'SUP_ID', type:'int', mapping:'SUP_ID'},





{name:'SUP_NAME', type: 'string',mapping:'SUP_NAME'},




]




)




});



supplier_combo_store.load();




Here is code for my combo box:






var



sup_name =new Ext.form.ComboBox({




id :'sup_combo_id',

editable :false,




allowBlank :false,




fieldLabel :'Supplier',




store : supplier_combo_store,




valueField :'SUP_ID',




mode :'remote',




displayField :'SUP_NAME',




width :135,




triggerAction:'all',




emptyText :'Select Supplier'




});