[Zope] Help with ZPT and dynamic javascript
Stephen Nesbitt
snesbitt at cobaltgroup.com
Wed Aug 11 20:40:03 EDT 2004
All:
Here's my design problem - I have a form with two drop down menus.
The values of the second drop down depend on what the user selected
in the first. The values of both fields are dynamic - pulled from a
database when the form is published.
I am trying to figure out how to enable this using Page Templates.
My thoughts are:
1) use tal:replace to generate the script element and its contents -
this doesn't seem to work with Zope ignoring everything within the
script tags.
2) use a python script and tal:replace to generate the script
element. This isn't working either - my suspicion is that the page
never processes the created script element.
3) call the database directly with javascript. I have no idea how to
do this or if it can be done and I really don't want to do it this
way.
4) ??
What simple clue am I missing? T
--
Stephen Nesbitt
Senior Configuration Management Engineer
The Cobalt Group
206.219.8271
snesbitt at cobaltgroup.com
More information about the Zope
mailing list