[Zope] Button onClick question

Chris McDonough chrism@digicool.com
Mon, 19 Feb 2001 10:57:58 -0500


One way to do this is to open a window via javascript, e.g.:

<input type=button onclick="window.open('/this/server/a/method')">

I image you can do something like this with frames as well.

If you just want to use this as an alternate submit button, you could just
put the button in a separate form and call form.submit() on the button's
onlick, e.g.

<input type=button onclick="this.form.submit()">

----- Original Message -----
From: "Michael Shigeki Onishi" <MICHAELS@senado.gov.br>
To: <zope@zope.org>
Sent: Monday, February 19, 2001 10:00 AM
Subject: [Zope] Button onClick question


> How can I call a dtml-method from a button's onClick?
>
> I have a form with a submit and a "delete" button that I want to link with
a
> dtml-method.
>
> Thank you.
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>