Re: covertchars db to keep CR's, but not new ones
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 44219
interpreted = N
texte = Thanks John, Brian and Dan,I had the url going into the database as well as wrapping the text from thetextarea's with inputs, but I didn't have a plain convertchars wrappedaround the output though. I figured it would take a custom conversions.dbbut alas, it works right out of the box as expected.Thanks again all,GK| WebDNA has standard tools for dealing with text area contents, once| you figure out what tools to use where.|| Writing to the DB:|| &dbField=[url][submittedtext][/url]|| Editing the field in a text area:||
|| Displaying the field as HTML text:|| [convertchars][dbField][/convertchars]||| The [url] converts odd characters (returns, tabs, ampersands) into| escape sequences to avoid screwing up the WebDNA syntax. WebDNA| automatically converts returns into %0B characters when writing to| the DB so they aren't interpreted as record terminators.|| The [input] converts odd characters (returns, quotes) into html| tokens which are|| The [convertchars] without specifying a DB uses| StandardConversions.db, which includes records for turning returns| (which are %0B in the DB) into
s and dealing with other| problematic characters as well.|| - brian|| At 4:49 PM 10/17/02, Gary Krockover wrote:| >Hi all,| >| >I have a simple db for a convertchars on textareas:| >| >Add.db| >| >from to| >%0D
| >| >| >Works on initial data entry, but each time the record is updated and| >submitted, it adds additional
tags. What would be the properdatabase| >to use for this instance?| >| >Thanks!| >GK||| -------------------------------------------------------------| 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://search.smithmicro.com/-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Thanks John, Brian and Dan,I had the url going into the database as well as wrapping the text from thetextarea's with inputs, but I didn't have a plain convertchars wrappedaround the output though. I figured it would take a custom conversions.dbbut alas, it works right out of the box as expected.Thanks again all,GK| WebDNA has standard tools for dealing with text area contents, once| you figure out what tools to use where.|| Writing to the DB:|| &dbField=[url][submittedtext][/url]|| Editing the field in a text area:|| || Displaying the field as HTML text:|| [convertchars][dbField][/convertchars]||| The [url] converts odd characters (returns, tabs, ampersands) into| escape sequences to avoid screwing up the WebDNA syntax. WebDNA| automatically converts returns into %0B characters when writing to| the DB so they aren't interpreted as record terminators.|| The [input] converts odd characters (returns, quotes) into html| tokens which are|| The [convertchars] without specifying a DB uses| StandardConversions.db, which includes records for turning returns| (which are %0B in the DB) into
s and dealing with other| problematic characters as well.|| - brian|| At 4:49 PM 10/17/02, Gary Krockover wrote:| >Hi all,| >| >I have a simple db for a convertchars on textareas:| >| >Add.db| >| >from to| >%0D
| >| >| >Works on initial data entry, but each time the record is updated and| >submitted, it adds additional
tags. What would be the properdatabase| >to use for this instance?| >| >Thanks!| >GK||| -------------------------------------------------------------| 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://search.smithmicro.com/-------------------------------------------------------------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://search.smithmicro.com/
Gary Krockover
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:
Where's Cart Created ? (1997)
Digest for 4/18/97 (1997)
[WebDNA] Crashing Database (2011)
[WebDNA] Off topic: ImageMagick (2008)
Press Release hit the NewsWire!!! (1997)
Stumpted Again (1997)
ANYONE (1999)
Re:[off] Promotions Co? (1997)
[isfile] ? (1997)
Re:quit command on NT (1997)
Modifying Carts (1999)
Fun with Dates - finally resolved but.... (1997)
[searchString] (1997)
Limitations on fields? Server is crashing (1997)
Country & Ship-to address & other fields ? (1997)
Mime Headers for Mail (1998)
problems with 2 tags shakur (1997)
Can you do this??? and other stuff (1997)
problems with 2 tags (1997)
[WebDNA] Shopping cart code debug (2009)