tags:

views:

170

answers:

2
+2  A: 

Or use something like this (which is better than a long url string):

baseParams: {
  'foo[controller]': 'demo',
  'foo[action]': 'index'
}
Igor Pavelek
Thanks a lot! It works and I wonder why I haven't thought about this... It looks so obvious.
Fabien
A: 

baseParams: { foo['controller']: 'demo', foo['action']: 'index' }
I would recommend this , i think there is simple difference of commas from above

Extjs Commander
This won't work.
Igor Pavelek
I get a JavaScript parsing error with that syntax. It seems the quote must be around 'foo[controller]' to be working.
Fabien