ajax - extjs: nested baseParams in request -
In the frame of an Ajax request, I tried to use the nested object for the parameter I am "baseParams" Basically, I would like to show a URL "ajax.php? Foo [controller] = demo and FUE [action] = index ".
produces: "ajax.php? foo = [object] and foo = [object] ".
Ext.data.JsonStore (base parameter: {foo: {controller: demo ', action:' index '}}, proxy: new extension.data.httpproxy ({method:' GET ', url : '/ajax.php'}), (...));
Of course, I can write in some way but I was looking for another nifty solution.
Ext.data.JsonStore (Proxy: New Ext.data.HttpProxy ({method: 'GET', url: '/ajax.php?foo[controller]=demo&foo[action]=index'} ), (...));
After some attempts, I wonder if it is actually possible. But maybe I missed something, can you help it?
or use something like this (which is better than long URL string):
< Pre> baseParams: {'foo [controller]': 'demo', 'fu [action]': 'index'}
Comments
Post a Comment