[Zope] Javascript onclick event and DTML

Jaroslav Lukesh lsh@wo.cz
Wed, 16 Oct 2002 09:26:18 +0200


| Odes=EDlatel: Chris McDonough <chrism@zope.com>
| You would cause the onclick event to call a JavaScript function that
| itself calls back in to Zope via HTTP to a method that sets the session
| vars.
|=20
| On Tue, 2002-10-15 at 12:32, AM wrote:
| > Hi,
| > If I had a link in which if the onclick event happened I wanted to se=
t
a=20
| > couple of session vars how would I go about doing it??

Why not add cookies from javascript?

And then read that in another page request, like that:

www.domain.com/folder/?another_page

Note that you need make some changes in your index_html rendering (or kin=
d
of redirecting).

Regards JL.