How could a DTML method or python script be fired from the onchange event of a selection list in a form. thanks garry
you are talking about stuff that is handled on the client side with Javascript. This has nothing to do with DTML since DTML is handled on the server inside Zope. -aj --On Donnerstag, 12. Juni 2003 17:56 Uhr +0100 garry saddington <garry@joydiv.fsnet.co.uk> wrote:
How could a DTML method or python script be fired from the onchange event of a selection list in a form.
thanks garry
_______________________________________________ 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 )
Actually, there is an example of doing this inside the main.dtml method within Zope's lib/python/OFS/dtml/main.dtml DTML method: Search for ... onChange="location.href='&dtml-URL1;/'+this.options[this.selectedIndex].value On Thu, 2003-06-12 at 13:22, Andreas Jung wrote:
you are talking about stuff that is handled on the client side with Javascript. This has nothing to do with DTML since DTML is handled on the server inside Zope.
-aj
--On Donnerstag, 12. Juni 2003 17:56 Uhr +0100 garry saddington <garry@joydiv.fsnet.co.uk> wrote:
How could a DTML method or python script be fired from the onchange event of a selection list in a form.
thanks garry
_______________________________________________ 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 )
_______________________________________________ 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 )
Look at the code behind the Add Item select in the ZMI for an example. HTH Dylan On Thu, 2003-06-12 at 09:56, garry saddington wrote:
How could a DTML method or python script be fired from the onchange event of a selection list in a form.
thanks garry
_______________________________________________ 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)
-
Andreas Jung -
Chris McDonough -
Dylan Reinhardt -
garry saddington