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 = 44211
interpreted = N
texte = Thanks for the reply Ken. I'm just doing a converchar's going into the database and nothing coming out except [url] (I think, need to double check that).I'll have to find some online resource for Grep that will do a search/replace like I want it to do.So is nobody using a blog type system where the carriage returns are kept if a user uses them in their textarea's? If so, what did you do to keep that formatting? Grep, convertchars?Thanks in advance, GK > >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 proper database > >to use for this instance? > > > Any Carriage Returns (%0D) which are typed into textarea fields are > replaced with Vertical Tabs (%0B) at the time they are stored in the > db. WebDNA does this so the db format does not get screwed up by the > addition of CR's in places where they do not belong. > > Of course, this means it has to reverse this process when the data is > retrieved ... and this means the %0B's are converted back into %0D's > on the web page. This may or may not have anything to do with the > problem you're seeing, but it's good to know the mechanics of > webdna's internal code in this situation -- so you can diagnose the > problem more effectively. > > The reason you're ending up with more
tags that you want > probably has something to do with the way you're manipulating the > data before it gets appended or replaced. It seems like your code is > attaching a new
tag to every %0D rather than replacing the %0D > with
. It could be that there's a bug in convertchars that's > causing this problem, but I would suspect something else first. > Nevertheless, you can test it easily by using a grep search/replace > instead of convertchars. Maybe grep will work properly ... > > > Sincerely, > Kenneth Grome ------------------------------------------------------------- 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:

    
  1. Re: covertchars db to keep CR's, but not new ones (Gary Krockover 2002)
  2. Re: covertchars db to keep CR's, but not new ones (Brian Fries 2002)
  3. Re: covertchars db to keep CR's, but not new ones (Dan Strong 2002)
  4. Re: covertchars db to keep CR's, but not new ones (John Peacock 2002)
  5. Re: covertchars db to keep CR's, but not new ones (Gary Krockover 2002)
  6. Re: covertchars db to keep CR's, but not new ones (Kenneth Grome 2002)
  7. covertchars db to keep CR's, but not new ones (Gary Krockover 2002)
Thanks for the reply Ken. I'm just doing a converchar's going into the database and nothing coming out except [url] (I think, need to double check that).I'll have to find some online resource for Grep that will do a search/replace like I want it to do.So is nobody using a blog type system where the carriage returns are kept if a user uses them in their textarea's? If so, what did you do to keep that formatting? Grep, convertchars?Thanks in advance, GK > >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 proper database > >to use for this instance? > > > Any Carriage Returns (%0D) which are typed into textarea fields are > replaced with Vertical Tabs (%0B) at the time they are stored in the > db. WebDNA does this so the db format does not get screwed up by the > addition of CR's in places where they do not belong. > > Of course, this means it has to reverse this process when the data is > retrieved ... and this means the %0B's are converted back into %0D's > on the web page. This may or may not have anything to do with the > problem you're seeing, but it's good to know the mechanics of > webdna's internal code in this situation -- so you can diagnose the > problem more effectively. > > The reason you're ending up with more
tags that you want > probably has something to do with the way you're manipulating the > data before it gets appended or replaced. It seems like your code is > attaching a new
tag to every %0D rather than replacing the %0D > with
. It could be that there's a bug in convertchars that's > causing this problem, but I would suspect something else first. > Nevertheless, you can test it easily by using a grep search/replace > instead of convertchars. Maybe grep will work properly ... > > > Sincerely, > Kenneth Grome ------------------------------------------------------------- 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:

Calendar Program (2004) Most Efficiant Way to do restricted Areas (1997) Text data with spaces in them... (1997) Transferring textareas (1997) Request Time Out (1997) Form based Redirect (2001) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Hello??? (1997) WebCat for Unix?? (1997) Variable Prices (1998) Emailer connect failure definitions (2003) Looking for work (2001) RAM problems, [appendfile] problems (1998) textarea (2000) WebCat hosting providers? (1997) How can I Add several Items into the cart at once? (1997) Webcatlog server not running (2008) NT or Mac (1997) Thanks and Big News!!! (1997) [WebDNA] function variables (2011)