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. - Asad
Yes. You will learn how to do it by studying the Zope Book. -aj --On Mittwoch, 14. Januar 2004 9:10 Uhr -0500 Asad Habib <ahabib@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.
- Asad
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Wed, 14 Jan 2004 09:10:59 -0500 (EST) Asad Habib <ahabib@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
Asad Habib said:
Is it possible to have a dtml document that consists of
You have an HTML challenge... once you figure that out, the DTML part will be simple.
several forms would lie within a single form
That isn't going to work very well. You'll do far better to implement this as multiple independent forms.
I would like to have the buttons directly call dtml methods.
No problem: <form method=post action=my_dtml_method_name> <input type=submit value="My Button Text"> </form> HTH, Dylan
participants (4)
-
Andreas Jung -
Asad Habib -
Casey Duncan -
Dylan Reinhardt