[Jifty-commit] r2881 - jifty/trunk/lib/Jifty/Manual

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Mar 2 22:24:21 EST 2007


Author: bartb
Date: Fri Mar  2 22:24:21 2007
New Revision: 2881

Modified:
   jifty/trunk/lib/Jifty/Manual/Cookbook.pod

Log:
Add note to cookbook showing how to change other fields using ajax canonicalization

Modified: jifty/trunk/lib/Jifty/Manual/Cookbook.pod
==============================================================================
--- jifty/trunk/lib/Jifty/Manual/Cookbook.pod	(original)
+++ jifty/trunk/lib/Jifty/Manual/Cookbook.pod	Fri Mar  2 22:24:21 2007
@@ -271,6 +271,13 @@
 
 Of course, you can apply the same trick to your own Action classes.
 
+You can use the canonicalization to change data in other fields.  For
+example you might want to update the postcode field when the suburb
+field is changed.
+
+	$self->argument_value( other_field => "new value" )
+
+
 =head2 Get the "Edit" links to work in the "Page info" tool
 
 If you click on "Page info", follow an "Edit" link for a fragment,


More information about the Jifty-commit mailing list