Re: Function basic question

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 67304
interpreted = N
texte = Correct. And if you want to have this cookie1year tag available everywhere then put your function into the PreParse Script section and you are set. Nitai Terry Wilson wrote: > I am interested in making use of the Function feature. I'd like to > define a few tags that will be at the ready when I need them. As I > understand it, a function can be like setting a text variable that's > always available anywhere. Is this correct... > > [function name=cookie1year][format days_to_date %A, > %d-%b-%Y][math]{[date]}+{00/00/0001}[/math][/format] [math > time]{[time]}+{05:00:00}[showif [date > %Z]=EDT]-{01:00:00}[/showif][/math] GMT[/function] > > ...then when setting a cookie, [cookie1year] will insert the above > rendered text where I need it? And it will freshly interpret the date > and time tags each time? > > Thanks, > Terry -- eBusines Suites simplified. eContentPark - Enterprise Digital Asset Management free of charge eServices - The complete SupportSuite eSurvey - Online Questionnaire made easy Redakto CMS - Content Management that simply works ComputerOil® AG Neugutstrasse 66 8600 Dübendorf / Switzerland Telefon +41 (0)844 44 55 66 info@computeroil.com http://computeroil.com http://econtentpark.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Function basic question ( Terry Wilson 2006)
  2. Re: Function basic question ( "Nitai @ ComputerOil" 2006)
  3. Re: Function basic question ( Stuart Tremain 2006)
  4. Function basic question ( Terry Wilson 2006)
Correct. And if you want to have this cookie1year tag available everywhere then put your function into the PreParse Script section and you are set. Nitai Terry Wilson wrote: > I am interested in making use of the Function feature. I'd like to > define a few tags that will be at the ready when I need them. As I > understand it, a function can be like setting a text variable that's > always available anywhere. Is this correct... > > [function name=cookie1year][format days_to_date %A, > %d-%b-%Y][math]{[date]}+{00/00/0001}[/math][/format] [math > time]{[time]}+{05:00:00}[showif [date > %Z]=EDT]-{01:00:00}[/showif][/math] GMT[/function] > > ...then when setting a cookie, [cookie1year] will insert the above > rendered text where I need it? And it will freshly interpret the date > and time tags each time? > > Thanks, > Terry -- eBusines Suites simplified. eContentPark - Enterprise Digital Asset Management free of charge eServices - The complete SupportSuite eSurvey - Online Questionnaire made easy Redakto CMS - Content Management that simply works ComputerOil® AG Neugutstrasse 66 8600 Dübendorf / Switzerland Telefon +41 (0)844 44 55 66 info@computeroil.com http://computeroil.com http://econtentpark.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://webdna.smithmicro.com/ "Nitai @ ComputerOil"

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:

Security (2006) Is this possible in simple search? question? (1998) WebCat constantly restarting (2001) Tax & Shipping (1997) Hard carriage convertion? (1998) two unique banners on one page (1997) Date format (2000) Exporting from Excel (1998) Form based Redirect (2001) RE: Displaying Location (1997) Weird WebCatalog problems (1998) Not really WebCat (1997) Summing fields (1997) Problems getting parameters passed into email. (1997) WCS Newbie question (1997) [WebDNA] Different responses for the same commands ... (2011) Variable security (2000) [WebDNA] Web Hosting (2008) WebCat editing, SiteGuard & SiteEdit (1997) [TaxableTotal] - not working with AOL and IE (1997)