ajax - Ext JS auto complete field with additional post variables -
i using ext js combobox in example: stackoverflow: how 1 html input tag autocomplete in ext.js?
it works perfect sending simple query on post server. (firebug output: query=smth)
but have bit different use case. want send additional information server. like: query=smth&variableid=8&somemore=xy.
of course add variables url of jsonstore , send on get. wondering if there params object can specify custom variables , considered request.
thank time.
yes. can define store with
baseparams: { thiswillbeaddedtoeachrequest: 'foo' }
or can use beforeload
listener
listeners: { beforeload: funciton(store) { store.setbaseparam('paramtobesetbeforeeachrequest',somevariable); } }
Comments
Post a Comment