Re: [Zope-dev] How-to : Defining custom DTML-tags ??
I don't know about a how-to but you can look at the sources in lib/python/DocumentTemplate or at the sources in lib/python/ Products/MailHost|MIMETools. You can use them as an example. -aj - Original Message - From: "Thomas Weholt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 10, 2002 09:35 Subject: [Zope-dev] How-to : Defining custom DTML-tags ?? > I want to create a custom DTML-tag. How/where do I start ? > > My goal is to create a way to define a form and validate the input ( that > integers are valid, required fields filled out etc. ) using Javascript in > the browser and > and on the server side after posting. Any thoughts ? > > I was thinking something along the lines of : > > > > > >Python >Perl >C > > > > > > Any info on how to define your own custom dtml-tags *in python* would be > highly appreciated. Anyhow, if the functionality I'm looking for is somehow > allready available I'll consentrate on something else. > > Best regards, > Thomas Weholt > > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) > ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How-to : Defining custom DTML-tags ??
Besides looking at the examples Casey mentioned, you might want to try extending the Formulator product to render the forms with the Javascript you want. Formulator fields already contain an "extra" setting where you can put any attributes for the fields, such as onClick actions and stuff. DTML using Formulator usually looks nice and simple, if you use your and correctly. Cheers, Leo -- Ideas don't stay in some minds very long because they don't like solitary confinement. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How-to : Defining custom DTML-tags ??
I would recommend looking at a product that defines a dtml tag. Calendar tag, set tag and eval tag are all ones that come to mind. hth. Casey On Mon, 2002-06-10 at 09:35, Thomas Weholt wrote: > I want to create a custom DTML-tag. How/where do I start ? > > My goal is to create a way to define a form and validate the input ( that > integers are valid, required fields filled out etc. ) using Javascript in > the browser and > and on the server side after posting. Any thoughts ? > > I was thinking something along the lines of : > > > > > >Python >Perl >C > > > > > > Any info on how to define your own custom dtml-tags *in python* would be > highly appreciated. Anyhow, if the functionality I'm looking for is somehow > allready available I'll consentrate on something else. > > Best regards, > Thomas Weholt > > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] How-to : Defining custom DTML-tags ??
I want to create a custom DTML-tag. How/where do I start ? My goal is to create a way to define a form and validate the input ( that integers are valid, required fields filled out etc. ) using Javascript in the browser and and on the server side after posting. Any thoughts ? I was thinking something along the lines of : Python Perl C Any info on how to define your own custom dtml-tags *in python* would be highly appreciated. Anyhow, if the functionality I'm looking for is somehow allready available I'll consentrate on something else. Best regards, Thomas Weholt ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )