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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -