Re: Removing carriage returns and line feeds

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 63744
interpreted = N
texte = How about using See the [input] tag in the webcat refs for more info. -Adam O Dennis J. Bonsall, Jr. wrote: > This seems like this should be straight-forward and relatively > simple. I'm also positive that I've done this before, so maybe it's > my increasing frustration that is getting the best of me. I am > simply trying to remove a carriage return/line feed combination from > a form element, but am having no luck. I am attempting to integrate > FCKEditor into a textarea, and it puts these CR/LR's into the > submitted value. When writing the submitted data to the WebDNA > database, they are automatically converted to vertical tabs. I am > attempting to strip them before WebDNA attempts to write them to the > database. > > I have tried using both the convertchars context, as well as grep, > but have had no success. I know that both the CR and the LF are in > the submitted value; I have confirmed this by urling the submitted > value and looking for the %0D%0A values. > > With the convertchars context, I put %0D%0A into the database in the > 'to' side. I also tried [unurl]%0D%0A[/unurl] to no avail, as well > as the CR and LF as their own entries in the database. Is there any > way to accomplish a conversion of a CR or LF using the convertchars > context? > > As for grep, I probably do not have the syntax correct. I have tried > [grep search=%0D%0A&replace=] and [grep search=[unurl]%0D%0A[/unurl] > &replace=]. I have also tried [grep search=\r\n&replace=] and [grep > search=[\r\n]&replace=] but these do not work either. > > Any help in resolving this issue would be appreciated. > > Thanks, > Dennis > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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:

    
  1. Re: Removing carriage returns and line feeds ( Kenneth Grome 2006)
  2. Re: Removing carriage returns and line feeds ( Donovan Brooke 2006)
  3. Re: Removing carriage returns and line feeds ( "Dennis J. Bonsall, Jr." 2006)
  4. Re: Removing carriage returns and line feeds ( "Adam O'Connor" 2006)
  5. Re: Removing carriage returns and line feeds ( Gary Krockover 2006)
  6. Removing carriage returns and line feeds ( "Dennis J. Bonsall, Jr." 2006)
How about using See the [input] tag in the webcat refs for more info. -Adam O Dennis J. Bonsall, Jr. wrote: > This seems like this should be straight-forward and relatively > simple. I'm also positive that I've done this before, so maybe it's > my increasing frustration that is getting the best of me. I am > simply trying to remove a carriage return/line feed combination from > a form element, but am having no luck. I am attempting to integrate > FCKEditor into a textarea, and it puts these CR/LR's into the > submitted value. When writing the submitted data to the WebDNA > database, they are automatically converted to vertical tabs. I am > attempting to strip them before WebDNA attempts to write them to the > database. > > I have tried using both the convertchars context, as well as grep, > but have had no success. I know that both the CR and the LF are in > the submitted value; I have confirmed this by urling the submitted > value and looking for the %0D%0A values. > > With the convertchars context, I put %0D%0A into the database in the > 'to' side. I also tried [unurl]%0D%0A[/unurl] to no avail, as well > as the CR and LF as their own entries in the database. Is there any > way to accomplish a conversion of a CR or LF using the convertchars > context? > > As for grep, I probably do not have the syntax correct. I have tried > [grep search=%0D%0A&replace=] and [grep search=[unurl]%0D%0A[/unurl] > &replace=]. I have also tried [grep search=\r\n&replace=] and [grep > search=[\r\n]&replace=] but these do not work either. > > Any help in resolving this issue would be appreciated. > > Thanks, > Dennis > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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/ "Adam O'Connor"

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:

TRAINING videos - Prove IT. (1998) Cart Numbers (1997) multiple product databases (1997) Re:2nd WebCatalog2 Feature Request (1996) Bad Cookie / Internet Option / Internet Explorer (2004) Attention SMSI - DOCS Error (2004) WC2.0 Memory Requirements (1997) Searching multiple Databases (1997) [DOS]/DOS query - ANOTHER SOLUTION (2003) WebCat b13 CGI -shownext- (1997) Webcat2, WebCommerce, Mod 10 etc. (1997) [WebDNA] IP Address to country (2008) Fwd: Problems with Webcatalog Plug-in (1997) WebCatalog2 Feature Feedback (1996) WebMerchant Problem (1999) ListDatabases & ShowIf (2003) &FieldNametype=time unnecessary? (2000) Custom WebCat Prefs ... (1997) High ASCII inside [LOOKUP] inside [LISTWORDS] (1998) Error: this shopping cart has already been submittedm (2004)