Cris
Cris

Reputation: 12204

ExtJS: ajax based search form

I have an Ext.form.Panel that calls a PHP page by passing search parameters. The PHP page executes a query based on those params and returns a JSON structure. In the form-success handler I would like to get the JSON, build a store and fill a grid. How can I do it using ajax? If I use Ext.form.panel submit() it always invoke onFailure because it does not find [{success:val,message:msg}]. Which is the correct way to build a form that gets back a JSON string?

Upvotes: 0

Views: 572

Answers (1)

Mchl
Mchl

Reputation: 62395

Why don't you just have your search panel call a load() action on grid's JsonStore? A lot easier than manually flling the store from JSON string.

Upvotes: 1

Related Questions