Re: Displaying text and populating form fields
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 61150
interpreted = N
texte = This really isn't that complicated *if* the docs are followed.The only times I can foresee when it may get complicated is whensomeone is uploading a .db from an outside environment.There is almost always some sort of cleansing that must takeplace. Also, it can get complicated if one is editing a .dbfield value that came from a textarea (contains returns) insidea standard form field... in other words, if someone is tryingto do something that they shouldn't.Other than that, just follow the docs and "most" of the examplesfrom the storebuilder solution (what I posted) and you shouldnever have a problem. I say "most" because Storebuilder/Sitebuilderis sometimes inconsistant...for example, there are a few places where it doesn't containa convertchars around the [description]'s etc..I didn't mention the other types of formatting in my example..formvar to page, .db value to sendmail (text) stuff etc.. But Kencovered some of them and I only want to add to one thing he saidas a precaution.Ken mentioned:To display text on the page from a textarea formvariable -->use [grep search=%0B&replace=
]This would cover many of you but you have to remember thatreturns may be different depending on your situation/platform.You may find that you will need to convert the %0D instead ofthe %0B or %OA for example:[grep search=%0D&replace=
][thetext][/grep]Hint, once you figure out what returns are being written, thiscan help with formatting text within a sendmail context.Regarding [input]If it makes you feel better to use [input] in non-textareasituations, then do it... I don't think it should harm anythingbut its overkill, and it converts some unnecessary characters(which I suppose can make it harder if the text is viewablefor editing).Thats from my experience anyway..Hope it helps,Donovan-- =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 <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 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/
Associated Messages, from the most recent to the oldest:
This really isn't that complicated *if* the docs are followed.The only times I can foresee when it may get complicated is whensomeone is uploading a .db from an outside environment.There is almost always some sort of cleansing that must takeplace. Also, it can get complicated if one is editing a .dbfield value that came from a textarea (contains returns) insidea standard form field... in other words, if someone is tryingto do something that they shouldn't.Other than that, just follow the docs and "most" of the examplesfrom the storebuilder solution (what I posted) and you shouldnever have a problem. I say "most" because Storebuilder/Sitebuilderis sometimes inconsistant...for example, there are a few places where it doesn't containa convertchars around the [description]'s etc..I didn't mention the other types of formatting in my example..formvar to page, .db value to sendmail (text) stuff etc.. But Kencovered some of them and I only want to add to one thing he saidas a precaution.Ken mentioned:To display text on the page from a textarea formvariable -->use [grep search=%0B&replace=
]This would cover many of you but you have to remember thatreturns may be different depending on your situation/platform.You may find that you will need to convert the %0D instead ofthe %0B or %OA for example:[grep search=%0D&replace=
][thetext][/grep]Hint, once you figure out what returns are being written, thiscan help with formatting text within a sendmail context.Regarding [input]If it makes you feel better to use [input] in non-textareasituations, then do it... I don't think it should harm anythingbut its overkill, and it converts some unnecessary characters(which I suppose can make it harder if the text is viewablefor editing).Thats from my experience anyway..Hope it helps,Donovan-- =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 <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 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/
Donovan Brooke
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:
PCS Customer submissions ? (1997)
WebCat 4.0x database losing data? (2003)
f2 download problems (1997)
Alternating colors (1997)
Authenticate (1997)
insecuretextvars preference doesn't work (2000)
Searching an Email database (1997)
Sendmail truncation in Eudora Clients (1998)
Stumpted Again (1997)
Sense/Disallow HTML tags during $Append (1997)
Interfacing WebMerchant to www.fedex.com (1997)
Question about links (1999)
autosensing lanague selection (1997)
WebCat2b13MacPlugIn - More limits on [include] (1997)
Taxable Shipping (2003)
How true is this? (1999)
Search in 2 or more catalogs (1997)
Initiating NewCart (1997)
UPDATEDONE question ... (1998)
WebCat2 several catalogs? (1997)