Re: Confirming a bug/oddity
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 54025
interpreted = N
texte = That is correct, IF your WebCatalog Prefs has 'InsecureTextVars' set to '0'(which is the default setting).To be even more exact...When 'InsecureTextVars' is '0', this is the order in which the parser willattempt to evaluate a WebDNA token:'function' name space ( WebDNA 5.x )'browser' tag name space ( IPADDRESS REFERRER ISSECURECLIENT USERNAMEPASSWORD THISURL etc...)'application' text vars'application' array vars ( i.e. 'array(x,y,z)' WebDNA 5.x )'application' math vars'application' tag name space ( DATE TIME INCLUDE RANDOM DELETE LOOKUPetc... )'form' html form vars'form' insecure text vars ( i.e. when you use '[textsecure=F]name=value[/text]' )'context' name spaceWebDNA 5.x - For WebDNA executed within a [scope] context or function, thefollowing will be checked first, before continuing with the list above.'scope' text vars'scope' array vars'scope' math vars'scope' functions-----Original Message-----From: Donovan Brooke [mailto:dbrooke@euca.us]Sent: Wednesday, November 12, 2003 11:50 AMTo: WebDNA TalkSubject: Re: Confirming a bug/oddityAhh, what is the order of preference between form, math and text?I would guess:textmathform???Hmm, this leads to...If listvariables loops through both math and text vars,how is one to determine what type they are?thanks,DonovanScott Anderson wrote:> I am sure the math statement is executing as you excepted, resultingin a> value of '1'. The trouble comes when you try to display the result.Text> and Math variables are separate entities, with Text variables taking> precedence over Math variables. And since you have create a Math andText> variable using the same name, you need to explicitly specify whichvariable> you want displayed. For example:>> [text show=f]thisone=0[/text]> [math show=f]thisone=[thisone]+1[/math]>> [thisone] <-- will display the Text 'thisone' variable value (which is'0')>> To display the 'thisone' Math variable, you will need to do this...>> [math]thisone[/math] <-- will display the math 'thisone' variablevalue> (which is '1')-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design WWW Developer / Consultant <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 email:> dbrooke(AT)euca.us Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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 toWeb Archive of this list is at: http://webdna.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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
That is correct, IF your WebCatalog Prefs has 'InsecureTextVars' set to '0'(which is the default setting).To be even more exact...When 'InsecureTextVars' is '0', this is the order in which the parser willattempt to evaluate a WebDNA token:'function' name space ( WebDNA 5.x )'browser' tag name space ( IPADDRESS REFERRER ISSECURECLIENT USERNAMEPASSWORD THISURL etc...)'application' text vars'application' array vars ( i.e. 'array(x,y,z)' WebDNA 5.x )'application' math vars'application' tag name space ( DATE TIME INCLUDE RANDOM DELETE LOOKUPetc... )'form' html form vars'form' insecure text vars ( i.e. when you use '[textsecure=F]name=value[/text]' )'context' name spaceWebDNA 5.x - For WebDNA executed within a [scope] context or function, thefollowing will be checked first, before continuing with the list above.'scope' text vars'scope' array vars'scope' math vars'scope' functions-----Original Message-----From: Donovan Brooke [mailto:dbrooke@euca.us]Sent: Wednesday, November 12, 2003 11:50 AMTo: WebDNA TalkSubject: Re: Confirming a bug/oddityAhh, what is the order of preference between form, math and text?I would guess:textmathform???Hmm, this leads to...If listvariables loops through both math and text vars,how is one to determine what type they are?thanks,DonovanScott Anderson wrote:> I am sure the math statement is executing as you excepted, resultingin a> value of '1'. The trouble comes when you try to display the result.Text> and Math variables are separate entities, with Text variables taking> precedence over Math variables. And since you have create a Math andText> variable using the same name, you need to explicitly specify whichvariable> you want displayed. For example:>> [text show=f]thisone=0[/text]> [math show=f]thisone=[thisone]+1[/math]>> [thisone] <-- will display the Text 'thisone' variable value (which is'0')>> To display the 'thisone' Math variable, you will need to do this...>> [math]thisone[/math] <-- will display the math 'thisone' variablevalue> (which is '1')-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design WWW Developer / Consultant <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 email:> dbrooke(AT)euca.us Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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 toWeb Archive of this list is at: http://webdna.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://webdna.smithmicro.com/
"Scott Anderson"
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:
Error Log (2000)
Upgrading from version (1998)
Email Attachments (1998)
Email Formatting and Encryption (1998)
can WC render sites out? (1997)
NT vs Mac (1997)
[ot] Browser Detection (2001)
osx or redhat and / or other (2005)
Price problem (1997)
WC2.0 Memory Requirements (1997)
FYI: virus alert (1996)
searchable list archive (1997)
merchant accts. (1997)
Navigator 4.01 (1997)
different show next (1997)
Quick Question About Sorting (1997)
[listfields] on Mac OS w/WC 3.x (2001)
Understanding variables (1999)
printing twice? and fix (1997)
[WebDNA] Does anyone have a whois/domain management tool in WebDNA? (2009)