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 will attempt to evaluate a WebDNA token: 'function' name space ( WebDNA 5.x ) 'browser' tag name space ( IPADDRESS REFERRER ISSECURECLIENT USERNAME PASSWORD 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 LOOKUP etc... ) 'form' html form vars 'form' insecure text vars ( i.e. when you use '[text secure=F]name=value[/text]' ) 'context' name space WebDNA 5.x - For WebDNA executed within a [scope] context or function, the following 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 AM To: WebDNA Talk Subject: Re: Confirming a bug/oddity Ahh, what is the order of preference between form, math and text? I would guess: text math form ??? Hmm, this leads to... If listvariables loops through both math and text vars, how is one to determine what type they are? thanks, Donovan Scott Anderson wrote: > I am sure the math statement is executing as you excepted, resulting in 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 and Text > variable using the same name, you need to explicitly specify which variable > 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' variable value > (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 to Web 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:

    
  1. Re: Confirming a bug/oddity ( Donovan Brooke 2003)
  2. Re: Confirming a bug/oddity ( "Scott Anderson" 2003)
  3. Re: Confirming a bug/oddity ( Donovan Brooke 2003)
  4. Re: Confirming a bug/oddity ( "Scott Anderson" 2003)
  5. Re: Confirming a bug/oddity ( Matthew Bohne 2003)
  6. Re: Confirming a bug/oddity ( Glenn Busbin 2003)
  7. Re: Confirming a bug/oddity ( Donovan Brooke 2003)
  8. Re: Confirming a bug/oddity ( "Scott Anderson" 2003)
  9. Re: Confirming a bug/oddity ( Jesse Proudman 2003)
  10. Re: Confirming a bug/oddity ( Gary Krockover 2003)
  11. Re: Confirming a bug/oddity ( Donovan Brooke 2003)
  12. Re: Confirming a bug/oddity ( Gary Krockover 2003)
  13. Re: Confirming a bug/oddity ( Donovan Brooke 2003)
  14. Confirming a bug/oddity ( Alex McCombie 2003)
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 will attempt to evaluate a WebDNA token: 'function' name space ( WebDNA 5.x ) 'browser' tag name space ( IPADDRESS REFERRER ISSECURECLIENT USERNAME PASSWORD 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 LOOKUP etc... ) 'form' html form vars 'form' insecure text vars ( i.e. when you use '[text secure=F]name=value[/text]' ) 'context' name space WebDNA 5.x - For WebDNA executed within a [scope] context or function, the following 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 AM To: WebDNA Talk Subject: Re: Confirming a bug/oddity Ahh, what is the order of preference between form, math and text? I would guess: text math form ??? Hmm, this leads to... If listvariables loops through both math and text vars, how is one to determine what type they are? thanks, Donovan Scott Anderson wrote: > I am sure the math statement is executing as you excepted, resulting in 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 and Text > variable using the same name, you need to explicitly specify which variable > 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' variable value > (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 to Web 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)