RE: [countChars] from <textarea>

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17553
interpreted = N
texte = Hi Dave,Seems like you are trying to count the chars before the user submits data. Webcat works before the HTML is sent to the browser. I also think that you are using the command=append way of adding the info to the database. JavaScript can limit the number of characters, but here is a webcat solution:How about passing your fields to another page and use the [append] context to add your truncated data, like this:=== [append db=your.db]filedName=[showif [countChars][Posting][/countChars]>100]Posting=[getChars start=1&end=100][Posting][/getChars][/showif][hideif [countChars][Posting][/countChars]>100]Posting=[Posting]/hideif][/append] ===Replace 100 with the amount you want to limit. With this method you can also perform all kinds of other checks like blank fields, valid email address, etc.Hope this helps.Aloha, Olin> -----Original Message----- > From: Dave Herriman [mailto:herriman@kcmetro.cc.mo.us] > Sent: Wednesday, May 06, 1998 12:24 PM > To: WebDNA-Talk > Subject: [countChars] from [/countChars] > are net getting me very far. > > When I use the check: > [showif [countChars]<100] > > [/showif] > the field info still gets added to the db. I'm not counting anything, I > guess(?) > > -- > > .Dave. > > > webmaster > metropolitan community colleges > kansas city, missouri, 64111 > http://www.kcmetro.cc.mo.us > mailto:herriman@kcmetro.cc.mo.us > > > Associated Messages, from the most recent to the oldest:

    
  1. RE: [countChars] from [/countChars] > are net getting me very far. > > When I use the check: > [showif [countchars]<100] > > [/showif] > the field info still gets added to the db. I'm not counting anything, I > guess(?) > > -- > > .Dave. > > > webmaster > metropolitan community colleges > kansas city, missouri, 64111 > http://www.kcmetro.cc.mo.us > mailto:herriman@kcmetro.cc.mo.us > > > Olin

    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:

    [WebDNA] Screen Resolution - detection & redirect (2012) unit ship cost GRRRRRRR! (2001) SKU (1997) Cart -> Date and Time (2004) CSV import suggestions (2007) Associative lookup style? + bit more (1997) Happy New Year (2002) Web Delivery Page concept (1997) find with exceptions (1997) Text data with spaces in them... (1997) [WebDNA] PayFlo Pro - Sept. 1st. deadline? (2009) Wrapping text (1998) Using [Showif] tag. Mac (1997) WebCat2 - [format thousands] (1997) Personal Web Server combined with Webcatalog 2.1 (1998) Pass a form (2003) Help! WebCat2 bug (1997) Associative lookup style? + bit more (1997) [WebDNA] can webdna set the email header (w/[sendmail]) that (2012) Multiple catalog databases and showcart (1997)