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:
Help HTML reader (1999)
A Suggestion? (1998)
Search inside Include (1998)
Fun with Dates - revisited (1997)
Cart Numbers (1997)
Multiple prices (1997)
DON'T use old cart file! (1997)
Whats wrong with this code? (1998)
Upgrage pricing... The future of WebCatalog is coming with4.0... (2000)
Summing fields (1997)
So many lookers, hey smith micro (2003)
Version 2.0 and 1.6 simultaneous (1997)
Formulas.db not working (2006)
Uploading stuff along with variables (2006)
Admin User - Users.db (1999)
Text Areas, Sendmail and returns.... (2002)
RE: Credit card processing - UK (1997)
shipcost (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Math problems (1998)