[Zope] handling SELECT 'onchange'
ezjab at ieee.org
Thu Feb 26 15:20:26 EST 2004
Thank you, Jonathan. Your response does help some. I have a follow up
question, being a newbie.
my server side environment when using Zope? Just a pointer
on where to look will be helpful.
Small Business Services wrote:
>From: "Jim Anderson" <ezjab at ieee.org>
>>which I'm attempting to get running in Zope by replacing
>>but my code does not work.
>>The HTML/DTML code looks like this:
>> <SELECT name="myselect" onchange=<dtml-var
>> <OPTION value="choice1">choice1</OPTION>
>> <OPTION value="choice2">choice2</OPTION>
>> <OPTION value="choice3">choice3</OPTION>
>>Question 1: Should this work?
>It won't work. The 'onchange' function is a browser based event and the
>browser does not know anything about server-side (ie. zope) functions,
>> code deal with the selection for efficiency.
>I would stick with js for anything that you want to control while 'in' the
>user's browser (ie. handle browser-based events like onmouseover, etc).
>Anything that has to do with saving/storing/updating information in an
>permanent/semi-permanent manner should be done on the server.
>For example: use js to let the user select data and perform any data
>edits/checking you want, then send the data to the server (zope) for
More information about the Zope