Hello,
is it possible to use a value of a variable as a variablename?
if I pass values through setparam it's something like this:
test.setparam({'action': 'index'});
The action in MyGrid is set to 'index'.
visit my website at
is it possible to use a value of a variable as a variablename?
if I pass values through setparam it's something like this:
test.setparam({'action': 'index'});
The action in MyGrid is set to 'index'.
Code:
MyGrid = Ext.extend(Ext.grid.GridPanel, {
webroot : null,
module : null,
controller : null,
action : null,
setparam : function(param) {
for(key in param) {
// here I want to set key = param[key];
}
}
visit my website at