[Zope] processing checkbox parameters - browser differences
Sandy Britain
a.britain@bangor.ac.uk
Fri, 08 Jun 2001 14:46:00 +0100
Hi all,
My problem is this:
I have a dtml method needs to pick up the values ONLY of checked
checkboxes in an html
form whose names are the ID's of objects users want to edit or delete.
So the
idea is that the object ids are passed to the method with the Request
object and
the appropriate objects can then be deleted or opened for editing in
another
html form.
This works great in netscape 4.x but it doesn't work in IE 5 - it
doesn't appear to be returning
the checkboxes with the REQUEST - or perhaps not picking up that any are
checked.
Here is the code from the method that processes the form' action:
<dtml-in "REQUEST.form.items()">
<dtml-let request_item_id=sequence-key>
<dtml-in "objectValues('myObjectType')">
<dtml-if expr="id == request_item_id">
Do some stuff to the object here
</dtml-if>
</dtml-in>
</dtml-let>
</dtml-in>
------------------------------------------
Here is the code that instantiates the checkbox:
<TD> <input type=checkbox name=<dtml-var id> value=1></TD>
Anyone know how to deal with this?
Sandy B