[Wiki] changed: PopulatingYourFirstModule
Wiki Guest <[email protected]>
| Newsgroups | gmane.comp.horde.cvs |
|---|---|
| Message-ID | <[email protected]> |
guest [129.187.43.121] Mon, 23 Feb 2009 18:46:20 -0500 Modified page: http://wiki.horde.org/PopulatingYourFirstModule New Revision: 1.10 Change log: form information added @@ -105,9 +105,9 @@ +++ Templates -To move your businesslogic-variabes to a html-layout, the Horde_Templates-Package is usefull. You can include templates with code tags, and Horde will replace these tags with your variable-content, if the tags and the variables are associated via template->setVariable(...); For further information read about this package use wiki.horde.org : /Doc/Dev/TemplatePackage +To move your businesslogic-variabes to a html-layout, the Horde_Templates-Package is usefull. You can include templates with code tags, and Horde will replace these tags with your variable content, if the tags and the variables are associated via template->setVariable(...);. For further information read about this package use wiki.horde.org : /Doc/Dev/TemplatePackage +++ Horde_Forms @@ -145,8 +145,13 @@ // stop renderer $renderer->end(); </code> + +If you want to manipulate form variables in javascript, you must set any value to that variable, otherwise it is not initialized correctly. If you plan to use a form for hidden values only, you will see a thin line in HTML. To prevent that, you can add a variable with type 'spacer'. This type has no visible content and the thin line caused by the "only hidden values" disappears. + +To read or write the form variables user $vars->set( $variablename, $value); and $myVar = $vars->get( $variablename, $defaultvalue_if_not_available ); . + ++ Scripts -- To unsubscribe, mail: [email protected]