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:

    
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:

formula inside database to calculate weights (1997) Multiple Image Upload --> ImageMagick (2005) Showcart in [include] (1999) Emailer [cart] file names (1997) typo in docs (2000) WebCat Versions (2003) security problem (1997) [WebDNA] cant't restart webcatalog missing libcrypto.so.0.9.8 (2014) RequiredFields template (1997) More on the email templates (1997) Mime-Version in email header (1997) Format of Required fields error message (1997) Who's going to MacWorld? (1999) [time] math Q (2003) Replace context (1998) Date search bug (1998) Requiring that certain fields be completed (1997) WebCat2final1 crashes (1997) restarting service remotely on NT (1997) Form Authentication (2000)