Re: Displaying text and populating form fields

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61140
interpreted = N
texte = A few years ago, I ran some exhaustive tests as well, and my conclusions are the same as Ken's. People are free to code the way they like, but for me, [input] is the only way to wrap form fields. [url] in these fields renders spaces as %20, and so forth, which is no good for the reasons Ken states. use [input]; use [url]. Easy to remember. To Ken's excellent guidelines, I'd add that ANY form field, not just type=text and hidden. Radio buttons, checkboxes, select - they all hold the value as a quoted element, all subject to being botched by an errant quote mark. In fact, if any html element has a webDNA variable inserted (it's going to be in quotes by default), I use [input]; not just forms. For instance, alt="[some description]" in an image tag. I amended my standard conversions years ago to include the
tag with no ill effect. I also have a host of other custom convchars db for special uses, like within a javascript but I won't go into it here and now. >All I really want is to come up with a definitive set of rules for >coding in these situations. If we can work together to test every >possible situation, maybe we can actually come up with a >comprehensive set of guidelines to refer to from now on. SMSI is >not going to do this for us, so let's do it ourselves. It shouldn't >take that much effort, right? Agreed. We should be adding this stuff to the online docs. In fact, under [input], I added something like the above two years ago. Ken: if nobody else wants to play, at least I'll compare notes with you. I keep track of this stuff for my own sanity anyway, and also made a little date tester at http://terryfic3d.com/datemath.html for anyone to play with when date comparisons don't do what you think they should. One of these days I'll add a date formatting section to it. Terry >From: Kenneth Grome >Subject: Displaying text and populating form fields ... >Content-Type: text/plain; charset="us-ascii" ; format="flowed" > >My relatively good (but not guaranteed) tests confirm the following: ....etc. ------------------------------------------------------------- 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: Displaying text and populating form fields (again) ( Kenneth Grome 2005)
  2. Re: Displaying text and populating form fields (again) ( Donovan Brooke 2005)
  3. Re: Displaying text and populating form fields (again) ( Stuart Tremain 2005)
  4. Re: Displaying text and populating form fields (again) ( Stuart Tremain 2005)
  5. Re: Displaying text and populating form fields (again) ( Donovan Brooke 2005)
  6. Re: Displaying text and populating form fields (again) ( Stuart Tremain 2005)
  7. Re: Displaying text and populating form fields (again) ( Donovan Brooke 2005)
  8. Re: Displaying text and populating form fields (again) ( Stuart Tremain 2005)
  9. Displaying text and populating form fields (again) ( eLists 2005)
  10. Re: Displaying text and populating form fields (again) ( "eLists" 2005)
  11. Re: Displaying text and populating form fields ( eLists 2005)
  12. Re: Displaying text and populating form fields ( "eLists" 2005)
  13. Re: Displaying text and populating form fields ( John Peacock 2005)
  14. Re: Displaying text and populating form fields ( Kenneth Grome 2005)
  15. Re: Displaying text and populating form fields ( Donovan Brooke 2005)
  16. Re: Displaying text and populating form fields ( Kenneth Grome 2005)
  17. Re: Displaying text and populating form fields ( Kenneth Grome 2005)
  18. Re: Displaying text and populating form fields ( Kenneth Grome 2005)
  19. Re: Displaying text and populating form fields ( Rob Marquardt 2005)
  20. Re: Displaying text and populating form fields ( Donovan Brooke 2005)
  21. Re: Displaying text and populating form fields ( Donovan Brooke 2005)
  22. Re: Displaying text and populating form fields ( Rob Marquardt 2005)
  23. Re: Displaying text and populating form fields ( Donovan Brooke 2005)
  24. Re: Displaying text and populating form fields ( Donovan Brooke 2005)
  25. Re: Displaying text and populating form fields ( Rob Marquardt 2005)
  26. Re: Displaying text and populating form fields ( Terry Wilson 2005)
  27. Re: Displaying text and populating form fields ( John Peacock 2005)
  28. Re: Displaying text and populating form fields ( Rob Marquardt 2005)
  29. Re: Displaying text and populating form fields ( Donovan Brooke 2005)
  30. Re: Displaying text and populating form fields ( Terry Wilson 2005)
  31. Displaying text and populating form fields ... ( Kenneth Grome 2005)
A few years ago, I ran some exhaustive tests as well, and my conclusions are the same as Ken's. People are free to code the way they like, but for me,
[input] is the only way to wrap form fields. [url] in these fields renders spaces as %20, and so forth, which is no good for the reasons Ken states. use [input]; use [url]. Easy to remember. To Ken's excellent guidelines, I'd add that ANY form field, not just type=text and hidden. Radio buttons, checkboxes, select - they all hold the value as a quoted element, all subject to being botched by an errant quote mark. In fact, if any html element has a webDNA variable inserted (it's going to be in quotes by default), I use [input]; not just forms. For instance, alt="[some description]" in an image tag. I amended my standard conversions years ago to include the
tag with no ill effect. I also have a host of other custom convchars db for special uses, like within a javascript but I won't go into it here and now. >All I really want is to come up with a definitive set of rules for >coding in these situations. If we can work together to test every >possible situation, maybe we can actually come up with a >comprehensive set of guidelines to refer to from now on. SMSI is >not going to do this for us, so let's do it ourselves. It shouldn't >take that much effort, right? Agreed. We should be adding this stuff to the online docs. In fact, under [input], I added something like the above two years ago. Ken: if nobody else wants to play, at least I'll compare notes with you. I keep track of this stuff for my own sanity anyway, and also made a little date tester at http://terryfic3d.com/datemath.html for anyone to play with when date comparisons don't do what you think they should. One of these days I'll add a date formatting section to it. Terry >From: Kenneth Grome >Subject: Displaying text and populating form fields ... >Content-Type: text/plain; charset="us-ascii" ; format="flowed" > >My relatively good (but not guaranteed) tests confirm the following: ....etc. ------------------------------------------------------------- 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/ Terry Wilson

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! WebCat2 bug (1997) Configuring E-mail (1997) 40,000+ items = mutiple dbs? (1999) Multiple prices (1997) &fieldsdir=ra truely random?? (2000) Dummy Credit Card Number for debug? (1997) WebCatalog [FoundItems] Problem - AGAIN - (1997) Can't load tmpl files (1997) Help formatting search results w/ table (1997) Shipping charge question (2003) Help! WebCat2 bug (1997) Alais Shopping Cart Directory (1998) Help! WebCat2 bug (1997) won't serve .tpl (2000) Post (1997) [WebDNA] add hours over 24 (2014) [thisurl] (2004) would this be a good use of [spawn]? (2002) Stumpted Again (1997) Hyperlink in email (2002)