Re: Custom Tags or Modular Code

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 36979
interpreted = N
texte = Write your code to take an email check it, and return T if it is okay, and F if it is bad. Make it an include file and put it in the webcat root. Then you can use it on anysite on the server [showif [include file=^emailchecker.inc]=T]The email is good[/showif]Brian Boegershausen ----- Original Message ----- From: Andrew Simpson To: WebCatalog Talk Sent: Thursday, July 05, 2001 4:59 PM Subject: Custom Tags or Modular Code > Is there any way you can define custom tags in webDNA. > > For Example I have written a small validation routine to check email > addresses so that they are valid before using the [sendmail] tag. > > Is it possible to encapsulate this in a custom tag or preferably define a > function containing this routine that could be called/ passed the string and > return some boolean value indicating validity. > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Custom Tags or Modular Code (Peter Werno 2001)
  2. Re: Custom Tags or Modular Code (Andrew Simpson 2001)
  3. Re: Custom Tags or Modular Code (Brian Boegershausen 2001)
  4. Custom Tags or Modular Code (Andrew Simpson 2001)
  5. Re: Custom Tags or Modular Code (Dale Therio 2001)
Write your code to take an email check it, and return T if it is okay, and F if it is bad. Make it an include file and put it in the webcat root. Then you can use it on anysite on the server [showif [include file=^emailchecker.inc]=T]The email is good[/showif]Brian Boegershausen ----- Original Message ----- From: Andrew Simpson To: WebCatalog Talk Sent: Thursday, July 05, 2001 4:59 PM Subject: Custom Tags or Modular Code > Is there any way you can define custom tags in webDNA. > > For Example I have written a small validation routine to check email > addresses so that they are valid before using the [sendmail] tag. > > Is it possible to encapsulate this in a custom tag or preferably define a > function containing this routine that could be called/ passed the string and > return some boolean value indicating validity. > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Brian Boegershausen

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

GuestBook example (1997) Getting Rid of Multiple Returns (2001) Search syntax question (1998) Imagemagick and fonts (2004) [date format] w/in sendmail (1997) syntax question, not in online refernce (1997) Problems with [Applescript] (1997) [group] ? (1997) What's wrong with this [append] context? (2000) WebCat2b12 CGI Mac - [shownext] problem (1997) Need help with emailer- 2 issues (1997) orderfile and setlineitems (1998) [WebDNA] [session] (2015) Allowed fields in formulas.db (1998) WebCat b13 CGI -shownext- (1997) Multiple prices (1997) Sense/Disallow HTML tags during $Append (1997) Re[2]: Base64 encryption limitations? (1999) [OT] Disable/enable field (2003) [shell] (2003)