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 = 44197
interpreted = N
texte = >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--------------------------------------------------- WebDNA Professional Training and Development Center 175 J. Llorente Street +63 (32) 255-6921 Cebu City, Cebu 6000 kengrome@webdna.net Philippines http://www.webdna.net ---------------------------------------------------------------------------------------------------------------- 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)
>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--------------------------------------------------- WebDNA Professional Training and Development Center 175 J. Llorente Street +63 (32) 255-6921 Cebu City, Cebu 6000 kengrome@webdna.net Philippines http://www.webdna.net ---------------------------------------------------------------------------------------------------------------- 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/ Kenneth Grome

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:

CSS in HTML emails? (2003) multiple search commands (1997) Three new problems, maybe a fourth (1997) Converting a Magazine to a Web Site with WebCat (1999) WebCat2b12 CGI Mac - [shownext] problem (1997) Problem (1997) More questions about serial number dishing (1997) Quiz question: Return all green and blank records? (2001) Removing user entered whitespace... (2004) CSV import suggestions (2007) displaying New products (using [date]) (1997) Help!!!! Purchases not going through! FIXED! (1997) AddLineItem Problem (1997) Cart ID (1999) Caching pages...again (2001) Suffix Mapping (1997) Can't Update records (1997) Format of Required fields error message (1997) WebCat2final1 crashes (1997) Director 7 (1999)