Better ZDOM examples? (take two)
Looks like I initially posted this on the wrong list so here I go again.... I'm using Zope version 2.5 My problem: I need to access the DOM. I need to pass a value from a form field to a python script. I've been trying to avoid this intersection for quite some time, using creative alternatives to get around the problem. However, I'm having difficulty avoiding it this time. I found something interesting: ZDOM. Looks promising, but I don't know what the heck I'm doing since the documentation is so laconic and sparse. The example provided is too general for me. I need a working, practical example. I'm not sure if 2.5 implements ZDOM. If so, has anyone used it yet? If someone has used it, then perhaps that someone could send me a code snippet as an example? Thanks for your time.
On 5/2/06, Benjamin Isaac <benjamin.isaac@gmail.com> wrote:
My problem: I need to access the DOM. I need to pass a value from a form field to a python script.
Well.. this is normally done with a form post. :) An XML-RPC call would be another way. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/
----- Original Message ----- From: "Benjamin Isaac" <benjamin.isaac@gmail.com>
My problem: I need to access the DOM. I need to pass a value from a form field to a python script. I've been trying to avoid this intersection for quite some time, using creative alternatives to get around the problem. However, I'm having difficulty avoiding it this time.
I found something interesting: ZDOM. Looks promising, but I don't know what the heck I'm doing since the documentation is so laconic and sparse. The example provided is too general for me. I need a working, practical example.
I'm not sure if 2.5 implements ZDOM. If so, has anyone used it yet? If someone has used it, then perhaps that someone could send me a code snippet as an example?
Here is some info on ZDOM (but i don't think it is what you want!): http://www.zope.org/Wikis/zope-xml/ZDom This is a client side problem not a server side (ie. zope) issue. Normally, all form fields are accessible via REQUEST on the server side. A couple of tricks: 1) use <input type='hidden' ...> html tags to pass info back to zope 2) use javascript to create new form fields (ie. based on some user interaction, you need to pass something new back to zope) hth Jonathan
participants (3)
-
Benjamin Isaac -
Jonathan -
Lennart Regebro