[Jifty-commit] r7193 - jifty/trunk/share/web/static/js
Jifty commits
jifty-commit at lists.jifty.org
Thu Jun 4 22:52:17 EDT 2009
Author: c9s
Date: Thu Jun 4 22:52:16 2009
New Revision: 7193
Modified:
jifty/trunk/share/web/static/js/jifty.js
Log:
add comment for response xml format.
Modified: jifty/trunk/share/web/static/js/jifty.js
==============================================================================
--- jifty/trunk/share/web/static/js/jifty.js (original)
+++ jifty/trunk/share/web/static/js/jifty.js Thu Jun 4 22:52:16 2009
@@ -1298,6 +1298,25 @@
// Grab the XML response
var response = responseXML.documentElement;
+ /* var response is an xml , which's content is like:
+ <response>
+ <fragment id="__page-region-name">
+ <argument name="argument1">value1</argument>
+ <argument name="argument2">value2</argument>
+ <content>
+ ...
+ </content>
+ </fragment>
+ <result class="MyApp::Action::DoPost" moniker="do-post">
+ <success>1</success>
+ <content>
+ <title>Title</title>
+ <id>123</id>
+ </content>
+ </result>
+ </response>
+ */
+
// Look through the action results looking for field validation errors
walk_node(response, {
result: function(result) {
More information about the Jifty-commit
mailing list