need help: baseParams not sent

  • Hi,

    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


  • something like this may fix?

    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'] })
    })


  • False alarm, the problem is caused by conflict with existing javascript.

    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.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about need help: baseParams not sent , Please add it free.