X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..HEAD:/examples/writer/writer.html diff --git a/examples/writer/writer.html b/examples/writer/writer.html new file mode 100644 index 00000000..fb682348 --- /dev/null +++ b/examples/writer/writer.html @@ -0,0 +1,30 @@ + + + + + Writer Example + + + + + + + + + +

Ext.data.writer.Writer Example

+

This example shows how to implement a Writer for your Store. A Writer-enabled Store frees you from having to manually compose Ajax requests +to perform CRUD actions on a Store.

+

Note that the js is not minified so it is readable. See writer.js. + +

The AjaxProxy plugged into the store in this example uses the api configuration instead of an url. +A simple MVC-like php backend has been created for this example which simulates a database by storing records in $_SESSION. See the file /remote/app/controllers/users.php. You may have to configure +your web-server to allow scripts to be executed in the /examples directory.

+ +

Take note of the requests being generated in Firebug as you interact with the Grid and Form.

+ +

An Error has been simulated on the server-side: Attempting to update a record having ODD-numbered id will generate this errror. +Responses from the update action will have successProperty === false along with a message. This error can be handled by +listening to the "exception" event upon your proxy.

+ +