Accessing the Values of a Select Element
Does anyone know how to access the values of a html select element that is defined to hold multiple values in Zope? In PHP, this element would be treated as an array but I have no idea how Zope handles this issue. Any help would be greatly appreciated. Thanks. - Asad
Hi, Am Mo, den 20.09.2004 schrieb Asad Habib um 22:15:
Does anyone know how to access the values of a html select element that is defined to hold multiple values in Zope? In PHP, this element would be treated as an array but I have no idea how Zope handles this issue. Any help would be greatly appreciated. Thanks.
What about just trying it? :) Zope does not bite! :) If you want to read on that matter: http://www.zope.org/Members/Zen/howto/FormVariableTypes and http://zope.org/Documentation/Books/ZopeBook/2_5_edition/ScriptingZope.stx Regards Tino
When I need a SELECT to handle multiple things I join them with colons then split them up wherever I need them. Works for me (so long as there are no colons in the data I am playing with!) Allen Tino Wildenhain wrote:
Hi,
Am Mo, den 20.09.2004 schrieb Asad Habib um 22:15:
Does anyone know how to access the values of a html select element that is defined to hold multiple values in Zope? In PHP, this element would be treated as an array but I have no idea how Zope handles this issue. Any help would be greatly appreciated. Thanks.
What about just trying it? :) Zope does not bite! :) If you want to read on that matter:
http://www.zope.org/Members/Zen/howto/FormVariableTypes
and
http://zope.org/Documentation/Books/ZopeBook/2_5_edition/ScriptingZope.stx
Regards Tino
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Hi, Am Di, den 21.09.2004 schrieb Allen Schmidt um 2:46:
When I need a SELECT to handle multiple things I join them with colons then split them up wherever I need them. Works for me (so long as there are no colons in the data I am playing with!)
Sorry but thats silly. You have a list here so you can use it. No need to waste cpu cycles to split and join. Even Properties handle multiselect lists as lists. Regards Tino
This issue is covered by the "Advanced scripting...." chapter of the Zope Book.. -aj --On Montag, 20. September 2004 16:15 Uhr -0400 Asad Habib <ahabib@engin.umich.edu> wrote:
Does anyone know how to access the values of a html select element that is defined to hold multiple values in Zope? In PHP, this element would be treated as an array but I have no idea how Zope handles this issue. Any help would be greatly appreciated. Thanks.
- Asad _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Allen Schmidt -
Andreas Jung -
Asad Habib -
Tino Wildenhain