-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have some listboxes that depend on each other such that if an entry is selected in one of them the contents (filled by ZSQL scripts) of the others change. I assume that this is not possible with DTML solely. Therefore I consider JavaScript. But I have no experience with it and I ask myself if (and how) it is possible to mix DTML and JavaScript eg. using the onChange() event. Is there any documentation or examples on this theme that I can have a look at? TIA, Andreas -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com> iQA/AwUBOQ60RZrEH3uwEF1BEQIekgCgsch/sgJXuTCIqRcCp/vbWcSuJMUAnA2P 62eHMUaZ2WYrpTMu+iayf6xI =nBaN -----END PGP SIGNATURE----- ********************************************************************** This email message has been swept by MIMEsweeper for the presence of computer viruses. Francotyp-Postalia AG & Co.
awfc> I have some listboxes that depend on each other such that if an entry awfc> is selected in one of them the contents (filled by ZSQL scripts) of awfc> the others change. awfc> I assume that this is not possible with DTML solely. Therefore I awfc> consider JavaScript. awfc> But I have no experience with it and I ask myself if (and how) it is awfc> possible to mix DTML and JavaScript eg. using the onChange() event. awfc> Is there any documentation or examples on this theme that I can have awfc> a look at? awfc> TIA, awfc> Andreas The important issue to consider when using Javascript/ECMAscript with Zope is that DTML-processing all takes place on the server running Zope, but all Javacript-processing takes place realtime in the clients browser without contacting the server. It should be rather simple to integrate the two, as they work on different platforms, and therefore won't interfere with each others operations. The only problems i've heard about is that the field-types sometimes used by Zope ( <input type="text" name="field1:tokens"> ) tend to confuse the javascript-references to these fields. Haven't checked this out much myself, though. Apart fom this, making the two work together should work nice and dandy ; you could even use Zope to generate your Javascript on the fly if you'd want this. Good luck -- Geir Bækholt Hansen web-developer/designer geirh@funcom.com http://www.funcom.com
The only problems i've heard about is that the field-types sometimes used by Zope ( <input type="text" name="field1:tokens"> ) tend to confuse the javascript-references to these fields. Haven't checked this out much myself, though.
Which is easily solved with: <script type="text/javascript" language="JavaScript"> // <!-- alert(document.forms.name_of_form.elements['name-of:string']); // --> </script> JIC you didn't know how. -Morten
participants (3)
-
a.wacknitz@francotyp.com -
Geir B�kholt Hansen -
Morten W. Petersen