[Zope] DTML and Buttons

Casey Duncan casey at zope.com
Wed Jan 14 09:45:37 EST 2004


On Wed, 14 Jan 2004 09:10:59 -0500 (EST)
Asad Habib <ahabib at engin.umich.edu> wrote:

> Is it possible to have a dtml document that consists of a single form
> with buttons that trigger the execution of dtml methods? Offcourse
> there would be one submit button for the form itself but rather than
> have one form associated with each button on the page(in this case
> several forms would lie within a single form) I would like to have the
> buttons directly call dtml methods. I know this can be done using
> Javascript but I'd rather use something else since Javascript executes
> on the client machine. Any help would be greatly appreciated. Thanks.

<input type="submit" name="someDTMLMethod:method" value="Do One Thing"
/>
<input type="submit" name="anotherDTMLMethod:method" value="Do Another
Thing" />

hth,

-Casey



More information about the Zope mailing list