[Zope] onchange events

Dylan Reinhardt zope@dylanreinhardt.com
12 Jun 2003 13:58:14 -0700

On Thu, 2003-06-12 at 12:31, garry saddington wrote:
> OK i've looked at the code behind the add item in the ZMI and i am lost.
> If the onchange was to trigger a DTML method called "RoomBookingForm" what 
> would the code look like?

You're just telling the browser what to request when an event occurs. 
DTML can be called server side, but in your case, this is just a plain
old client-side request that happens to be made by JavaScript.

In your case, the select would contain something like:


Or maybe you would incorporate the selected value into the URL in a
different way... however you do it, you're just constructing a URL for
the user to request that Zope will respond to.