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 youare using the command=append way of adding the info to the database.JavaScript can limit the number of characters, but here is a webcatsolution:How about passing your fields to another page and use the [append] contextto add your truncated data, like this:===[append db=your.db]filedName=[showif[countChars][Posting][/countChars]>100]Posting=[getCharsstart=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 alsoperform 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