Vanilla 1 Documentation Archive

 
 
vanilla:development:customcontrols

Differences

This shows you the differences between the selected revision and the current version of the page.

vanilla:development:customcontrols 2009/10/29 08:36 vanilla:development:customcontrols 2009/10/29 08:37 current
Line 207: Line 207:
Now if the IsPostBack is still true and the PostBackAction is "ProcessUpdateCheck" (indicating that the form has already been displayed and a submit button was clicked), then the control pings out to lussumo.com with a request for information about the latest version of Vanilla. This information is retrieved and the PostBackValidated property is set to true. By setting this property to true, the control will now know to call the Render_ValidPostBack method instead of the Render_NoPostBack method. Each of these different methods call different template files: themes/settings_update_check_nopostback.php and themes/settings_update_check_validpostback.php respectively. The "nopostback" template is rendered before the form is submitted, and the "validpostback" template is rendered when the PostBackValidated has been set to true. This way you can have a "before" and "after" result of submitting a form. Now if the IsPostBack is still true and the PostBackAction is "ProcessUpdateCheck" (indicating that the form has already been displayed and a submit button was clicked), then the control pings out to lussumo.com with a request for information about the latest version of Vanilla. This information is retrieved and the PostBackValidated property is set to true. By setting this property to true, the control will now know to call the Render_ValidPostBack method instead of the Render_NoPostBack method. Each of these different methods call different template files: themes/settings_update_check_nopostback.php and themes/settings_update_check_validpostback.php respectively. The "nopostback" template is rendered before the form is submitted, and the "validpostback" template is rendered when the PostBackValidated has been set to true. This way you can have a "before" and "after" result of submitting a form.
 +
Line 212: Line 213:
=====Conclusion===== =====Conclusion=====
-That is really it. If you can grasp how PostBackControls work, then you're well on your way to writing a completely custom application using the Lussumo Framework or just creating custom controls to do some very funky things within Vanilla. Enjoy reading+That is really it. If you can grasp how PostBackControls work, then you're well on your way to writing a completely custom application using the Lussumo Framework or just creating custom controls to do some very funky things within Vanilla.
---- ----
[[vanilla:development:delegation|Click here to read the next section on developing new extensions: Delegation]] [[vanilla:development:delegation|Click here to read the next section on developing new extensions: Delegation]]
 
 
 
 
vanilla/development/customcontrols.txt · Last modified: 2009/10/29 08:37 by igniraj
Vanilla 1 Documentation archive (Wiki by DokuWiki)