From: ferite C. H. <fer...@li...> - 2005-09-27 09:41:47
|
Ferite CVS committal Author : boris Project : webframework Dir : webframework/Applications/AJAXTest.app/Pages Modified Files: Main.page Main.page.fe Log Message: via code as well =================================================================== RCS file: /cvsroot/ferite/webframework/Applications/AJAXTest.app/Pages/Main.page,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- Main.page 27 Sep 2005 09:37:26 -0000 1.5 +++ Main.page 27 Sep 2005 09:41:42 -0000 1.6 @@ -14,4 +14,4 @@ <wf:AJAXMultipleLabelItem ID="Town" /> </wf:AJAXMultipleLabel> -<wf:HTMLSnippet Snippet="Example" KeyValue="company_name:Cention;contact_name:Chris Ross" /> +<wf:HTMLSnippet ID="Snippet" Snippet="Example" KeyValue="company_name:Cention;contact_name:Chris Ross" /> =================================================================== RCS file: /cvsroot/ferite/webframework/Applications/AJAXTest.app/Pages/Main.page.fe,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- Main.page.fe 23 Sep 2005 12:06:14 -0000 1.5 +++ Main.page.fe 27 Sep 2005 09:41:42 -0000 1.6 @@ -3,12 +3,13 @@ class MainPage extends GUIKit.Page { object DocumentTitle; // Automatically bound by webframework object Title, Address; // Automatically bound by webframework - object Road1; + object Road1, Snippet; function initialiseComponents() { // Add Component initialisation code here .Title.registerEventHook( self, "ajax", GUIKit.EvAJAX ); .Address.registerEventHook( self, "ajax2", GUIKit.EvAJAX ); + .Snippet.setKeyValue( 'set_via_code', "555-1234" ); } function ajax( object sender, string extra ) { return "Edit box should read: '$extra'"; |