Re: Proposed FormVariables hierarchy

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31581
interpreted = N
texte = >The parser will find secure text variables first, then >form variables, then insecure textvariables. A side-effect would be >that one could have text variables with exactly the same name in both >namespaces, but secure ones would be found first.I'm not quite sure why you're telling us this, but it certainly is neat. And when you say text variables you mean both [TEXT] and [MATH], right?It all seems very clear, except for this side effect. I'm not quite sure how it comes into play. Are you saying that if have the following code:1 [TEXT]var=hello[/TEXT] 2 some stuff 3 [TEXT SECURE=F]var=goodbye[/TEXT] 4 [VAR]then Webcat will now have [VAR] in its hierarchy *twice* but will default to the secure version? That is line 4's [VAR] will evaluate to hello instead of the later defined goodbye? Or will the SECURE=F tag kick [VAR] up a few steps in the hierarchy so that line 4 evaluates to goodbye?If the former (evaluating the secure [VAR] first), we should use SECURE=F in the first instance of the variable to define its place in the hierarchy. Right? If the former, how would WebCat evaluate conflicting tags on the same page (like if someone tries to switch the security of a variable several times in the same page)?If this example doesn't make sense, it's because I'm having trouble coming up with all the possible conflicts of having two variables with the same name.How would WebCat handle this example:on SOMEPAGE.HTML?VAR=10[MATH SECURE=T]VAR=25[/MATH] [MATH SECURE=F]VAR=[VAR]+5[/MATH] would the result be 15 or 30?It all makes my head hurt, Michael############################################################# 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 To switch to the INDEX mode, E-mail to Send administrative queries to Associated Messages, from the most recent to the oldest:

    
  1. Re: Proposed FormVariables hierarchy (John Butler 2000)
  2. Re: Proposed FormVariables hierarchy (John Peacock 2000)
  3. Re: Proposed FormVariables hierarchy (Nicolas Verhaeghe 2000)
  4. Re: Proposed FormVariables hierarchy (Kenneth Grome 2000)
  5. Re: Proposed FormVariables hierarchy (John Peacock 2000)
  6. Re: Proposed FormVariables hierarchy (Pat McCormick 2000)
  7. Re: Proposed FormVariables hierarchy (Kenneth Grome 2000)
  8. Re: Proposed FormVariables hierarchy (GHulbert@smithmicro.com 2000)
  9. Re: Proposed FormVariables hierarchy (Thomas Wedderburn-Bisshop 2000)
  10. Re: Proposed FormVariables hierarchy (Michael Winston 2000)
  11. Re: Proposed FormVariables hierarchy (Kenneth Grome 2000)
  12. Proposed FormVariables hierarchy (GHulbert@smithmicro.com 2000)
>The parser will find secure text variables first, then >form variables, then insecure textvariables. A side-effect would be >that one could have text variables with exactly the same name in both >namespaces, but secure ones would be found first.I'm not quite sure why you're telling us this, but it certainly is neat. And when you say text variables you mean both [text] and [math], right?It all seems very clear, except for this side effect. I'm not quite sure how it comes into play. Are you saying that if have the following code:1 [text]var=hello[/TEXT] 2 some stuff 3 [TEXT SECURE=F]var=goodbye[/TEXT] 4 [VAR]then Webcat will now have [VAR] in its hierarchy *twice* but will default to the secure version? That is line 4's [VAR] will evaluate to hello instead of the later defined goodbye? Or will the SECURE=F tag kick [VAR] up a few steps in the hierarchy so that line 4 evaluates to goodbye?If the former (evaluating the secure [VAR] first), we should use SECURE=F in the first instance of the variable to define its place in the hierarchy. Right? If the former, how would WebCat evaluate conflicting tags on the same page (like if someone tries to switch the security of a variable several times in the same page)?If this example doesn't make sense, it's because I'm having trouble coming up with all the possible conflicts of having two variables with the same name.How would WebCat handle this example:on SOMEPAGE.HTML?VAR=10[MATH SECURE=T]VAR=25[/MATH] [MATH SECURE=F]VAR=[VAR]+5[/MATH] would the result be 15 or 30?It all makes my head hurt, Michael############################################################# 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 To switch to the INDEX mode, E-mail to Send administrative queries to Michael Winston

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:

New Command prefs ... (1997) Possible Bug in 2.0b15.acgi (1997) Archives are missing (2003) php + WebCatalog in same files (2001) Remove Command not working (2000) Search results templates (1996) [WebDNA] What am I doing wrong with authenticate (2012) More Hide IFs (2000) Affiliate program code (2004) bug ? causes NT event log to fill (1997) New Command prefs ... (1997) build a select list from a db search (2004) Add to Cart & List of Products (1997) Practice runs ? (1997) unable to launch acgi in WebCat (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Re[2]: Next X hits (1996) Subtotal and Grand Total Changes (2000) WebSTAR 2.1 freezes my Mac (1997) $append (1998)