-
29 Jun 2012 11:17 PM #1
Ext.decode seems to not work properly
Ext.decode seems to not work properly
Hi all,
I'm trying to decode a basic json string like this :
The goal is to compose dynamically a json text and reuse it to dynamically build a component.Code:{ id: 'sample', name: 'sample', xtype: 'textfield', fieldLabel: 'Test field', renderTo: 'test'}
But the Ext.decode throws an error.
Here is the full code :
The error type is 'non_object_property_load' in Chrome debugger.Code:jsonConfig = "{" + "renderTo: 'test'," + "id: 'sample'," + "name: 'sample'," + "xtype: 'textfield'," + "fieldLabel: 'Test field'" + "}" var jsonCmp = Ext.decode(jsonConfig);
-
29 Jun 2012 11:25 PM #2
Forget it....
Forget it....
My fault... It's not the Ext.decode which has a problem !
'renderTo' is simply not applicable to a simple field.
Is there a way to delete stupid posts ?
-
30 Jun 2012 5:21 AM #3
Remove posts? No way... suffer
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
30 Jun 2012 6:11 AM #4
LOL
LOL
In french, there's an expression saying "Nobody's dead of being ridiculous".
I don't know if there is an english equivalent.


Reply With Quote