Ich habe diese innerhalb einer Funktion:ExtJS 4 ungültige JSON-String
var json = Ext.JSON.decode("{xtype: 'textfield',maxLength: 40}");
und es ist in Ordnung. ExtJS erlaubt das.
Dann habe ich diese in eine andere Funktion:
var json = Ext.JSON.decode("{xtype:'combo',store: storeMercadosCombo, displayField: 'mercado',valueField:'id'}");
und ExtJS zeigt mir:
Ext.Error: You're trying to decode an invalid JSON String: ...
Wo ist der Fehler? Wie sollte Ext.JSON.decode sein?
Ich verwende ExtJS 4.2.1
Das geht nicht, JSON kann keine Referenzen auf Funktionen/Variablen haben. –
WTF versuchen Sie? – Alexander
@Alexander Ich versuche, meine Antwort auf diese Frage zu tun http://stackoverflow.com/questions/7679364/extjs-4-rowediting-disable-edit-on-one-column-based-on-record/37057662# 37057662, aber mit diesem neuen JSON – alexandre1985