Re: P1: How to make webcatalog more stable. - LONG

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24138
interpreted = N
texte = >I know that in-house we do over three hundred checks on an email address to >check for validity, setting an error= variable when a condition happens.How can you possibly have 300 different checks on an email address? That seems like al awful lot of checks on a single field. No matter how many webdna checks you perform on an email address, those checks will never tell you if the email address is actually valid or not -- thus it seems there comes a point when more checks on the email address are a waste ...>Lets say that we then want to give them the >opportunity to fix the errors of their ways. > >Our simple > > >now would look like: > >but this has two problems. > >1) the first time you come to the page, WebCatalog has no idea of the field >[email] so it will literally put the text [email] in the box. Ugly > >so we fix this by putting: >value=[hideif [email]=[raw][email][/raw]][email][/hideif]>That's a very OLD-FASHIONED way to hide the [email] tag! Why don't you try an up-to-date and far simpler method?There is a very *simple* technique available that uses text variables to make this field blank the first time you come to the page. Just put [text]email=[/text] at the top of the page and the email variable will be set to 'blank' before the form gets filled in by webcat -- which means you NEVER HAVE TO WORRY ABOUT HIDING IT EVER AGAIN!!!By the way, you can do the same thing with every other field in the form as well ... :)>Therefor now we have to expand our input field a little. >value=[hideif [url][email][/url]=%5Bemail%5D][email][/hideif]>No, no, no, you do NOT have to use all this convoluted code! This is a crazy technique to use with webcat 3.x when other techniques are faster to code, simpler to understand, and faster to interpret by webcatalog.Brian, when you asked about this technique two weeks ago, I gave you my text variable solution within about 5 minutes -- so you would *not* have to hide the [email] tag like you seem to insist on doing now. I don't know why, but for some reason you never replied to my request asking you how it was going. You didn't even reply when I asked you a second time via private email ... ?Did you have a problem implementing it? Or didn't I explain it clearly enough for you to try it? Or was it too simple for you to believe that it would actually work?Kenneth Grome WebDNA Consultant Phone 808-737-6499 http://webdna.net------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Associated Messages, from the most recent to the oldest:

    
  1. Re: P1: How to make webcatalog more stable. - LONG (Miguel Castaneda 1999)
  2. Re: P1: How to make webcatalog more stable. - LONG (Kenneth Grome 1999)
  3. [offtopic]Re: P1: How to make webcatalog more stable. - LONG (Michael O Shea 1999)
  4. Re: P1: How to make webcatalog more stable. - LONG (Bob Minor 1999)
  5. Re: P1: How to make webcatalog more stable. - LONG (Brian B. Burton 1999)
  6. Re: P1: How to make webcatalog more stable. - LONG (Kenneth Grome 1999)
  7. P1: How to make webcatalog more stable. - LONG (Brian B. Burton 1999)
>I know that in-house we do over three hundred checks on an email address to >check for validity, setting an error= variable when a condition happens.How can you possibly have 300 different checks on an email address? That seems like al awful lot of checks on a single field. No matter how many webdna checks you perform on an email address, those checks will never tell you if the email address is actually valid or not -- thus it seems there comes a point when more checks on the email address are a waste ...>Lets say that we then want to give them the >opportunity to fix the errors of their ways. > >Our simple > > >now would look like: > >but this has two problems. > >1) the first time you come to the page, WebCatalog has no idea of the field >[email] so it will literally put the text [email] in the box. Ugly > >so we fix this by putting: >value=[hideif [email]=[raw][email][/raw]][email][/hideif]>That's a very OLD-FASHIONED way to hide the [email] tag! Why don't you try an up-to-date and far simpler method?There is a very *simple* technique available that uses text variables to make this field blank the first time you come to the page. Just put [text]email=[/text] at the top of the page and the email variable will be set to 'blank' before the form gets filled in by webcat -- which means you NEVER HAVE TO WORRY ABOUT HIDING IT EVER AGAIN!!!By the way, you can do the same thing with every other field in the form as well ... :)>Therefor now we have to expand our input field a little. >value=[hideif [url][email][/url]=%5Bemail%5D][email][/hideif]>No, no, no, you do NOT have to use all this convoluted code! This is a crazy technique to use with webcat 3.x when other techniques are faster to code, simpler to understand, and faster to interpret by webcatalog.Brian, when you asked about this technique two weeks ago, I gave you my text variable solution within about 5 minutes -- so you would *not* have to hide the [email] tag like you seem to insist on doing now. I don't know why, but for some reason you never replied to my request asking you how it was going. You didn't even reply when I asked you a second time via private email ... ?Did you have a problem implementing it? Or didn't I explain it clearly enough for you to try it? Or was it too simple for you to believe that it would actually work?Kenneth Grome WebDNA Consultant Phone 808-737-6499 http://webdna.net------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Kenneth Grome

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:

[WebDNA] Payeezy FirstData (2019) thankyou.tmpl (1997) Re:PCS Customer submissions ? (1997) Budget system (2003) One more try (1997) WebCat2: Items xx to xx shown, etc. (1997) Download (1999) WCS Newbie question (1997) RequiredFields template (1997) Free shipping (2000) Max Record length (1997) Use of Back and Reload Buttons on ShoppingCart page? (1997) Couple of questions (1999) creating files dynamically (2002) best way to test for the existence of a parameter in a url (2003) Stopping bad HTML propagation ? (1997) Country & Ship-to address & other fields ? (1997) Has anyone built this already? (2003) Looking for a Manual (1997) Email (1998)