I have a simple combobox which the baseParams is sent as empty.
MyCombo = Ext.extend(Ext.form.ComboBox, {
initComponent: function() {
Ext.apply(this, {
store: this.store,
triggerAction: 'all'
});
MyCombo.superclass.initComponent.apply(this, arguments);
},
store: new Ext.data.Store({
proxy: new Ext.data.HttpProxy({ url: '/ajx.php', method: 'GET' }),
baseParams: { foo: 'FOO' },
reader: new Ext.data.JsonReader({ root: 'xs', fields: ['x'] }),
})
});
Using firebug to check the call, there is a parameter named "foo" but its value is empty "".
Thank you.
-c
store: new Ext.data.Store({
proxy: new Ext.data.HttpProxy(
new Ext.data.Connection({
url: '/ajx.php',
method: 'GET',
extraParams: { foo: 'FOO' }
})
),
reader: new Ext.data.JsonReader({ root: 'xs', fields: ['x'] })
})
I am trying to develop a component within a forum system and the existing javascript does not play nice with extjs :(
Thanks for all who tried to help.
-c
#If you have any other info about this subject , Please add it free.# |