-
28 Jul 2008 12:46 AM #1
missing : after property id
missing : after property id
Hi all,
I'm trying to pass parameters to the Ext.Ajax.request in way described below
params:{formPanel.form.getValues(),SelectId:elId}
I'm getting the above error by firebug.
Can someone help me out?
-
28 Jul 2008 12:49 AM #2
It's not valid javascript. If you're defining an object, you have to do it like:
Code:{ name1: value1, name2: value2 }Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
28 Jul 2008 12:51 AM #3
but i have so many fields in the form so, writing in that way would not be feasible.
-
28 Jul 2008 1:24 AM #4
Eventually I was able to solve it by using hidden field to store the value of extra parameter i.e SelectId
-
28 Jul 2008 2:02 AM #5
Use Ext.apply to add extra properties to the getValues result object:
Code:params: Ext.apply(formPanel.form.getValues(), { myExtraParam: 'myExtraValue', myOtherExtraParam, 'myOtherExtraValue' });Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
28 Jul 2008 2:09 AM #6


Reply With Quote