Function basic question
This WebDNA talk-list message is from 2006
It keeps the original formatting.
numero = 67302
interpreted = N
texte = 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-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemhttp://TightPods.com -- stylish protection for your laptop--------------------------------------------------------------------------Attitude is the only difference between ordeal and adventure.-------------------------------------------------------------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:
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-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemhttp://TightPods.com -- stylish protection for your laptop--------------------------------------------------------------------------Attitude is the only difference between ordeal and adventure.-------------------------------------------------------------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/
Terry Wilson
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:
showif and cart (1997)
WebCommerce: Folder organization ? (1997)
PLEASE REMOVE MY EMAIL ADDRESS (1997)
Emailer problem with WC 2.1, NT, WebSite 2.1 (1998)
variables in [addlineitem] (1998)
Show your support (2002)
Error: the 'showcart' command requires that you specify a db (1997)
Test (2002)
What am I missing (1997)
[WebDNA] How to get the domain name? (2009)
Limitations on fields? Server is crashing (1997)
Re2: Calculating multiple shipping... (1997)
More than one db with the same namn (was: WC2f3) (1997)
WebCatalog sales (1997)
Redirect to anchor (2001)
Can this be done? (1997)
vs (1997)
Re:Non-technical messages ... (1997)
Showif, Hideif reverse logic ? (1997)
A question about security (1998)