データを送信してjson応答を待機しているフォームがありますが、フォームがresponseTextをJSONに解析しようとすると、PHPのエラー/警告/通知によってjavascript例外が発生します。
フォームが実行する前に、エラーをキャッチしたり、検証を実行したりする方法はありますか?
Ext.JSON.decodeをオーバーライドしようとしましたが、コンソールエラーが次のように表示されても、何らかの理由でフォームがその定義を使用しません
Uncaught Ext.JSON.decode(): You're trying to decode an invalid JSON String: my wrong json test!! ext-all.js:21
Ext.Error.Ext.extend.statics.raise ext-all.js:21
Ext.JSON.me.decode ext-all.js:21 <-- why Ext.JSON.[me].decode?
Ext.define.handleResponse ext-all.js:21
Ext.define.processResponse ext-all.js:21
Ext.define.onSuccess ext-all.js:21
Ext.apply.callback ext-all.js:21
Ext.define.onComplete ext-all.js:21
Ext.define.onStateChange ext-all.js:21
(anonymous function)
何か案が?前もって感謝します。