AW: [Zope] onchange events

Germer, Carsten carsten.germer@desy.de
Mon, 16 Jun 2003 10:26:12 +0200


In case you need: A fine source for javascript info is still netscapes
devedge, imho. http://devedge.netscape.com/central/javascript/

> -----Urspr=FCngliche Nachricht-----
> Von: Dylan Reinhardt [mailto:zope@dylanreinhardt.com]
> Gesendet: Donnerstag, 12. Juni 2003 22:58
> An: garry@joydiv.fsnet.co.uk
> Cc: Zope@zope.org
> Betreff: Re: [Zope] onchange events
>=20
>=20
> 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=20
> and i am lost.
> > If the onchange was to trigger a DTML method called=20
> "RoomBookingForm" what=20
> > would the code look like?
>=20
> 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.
>=20
> In your case, the select would contain something like:
>=20
> onChange=3D"location.href=3D'http://server/path/RoomBookingForm?va
> lue=3D'+this.options[this.selectedIndex].value"
>=20
> 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.
>=20
> HTH,
>=20
> Dylan
>=20
>=20
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>=20