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:

    TCPConnect and SSL servers (2001) ... debugger ? (2000) OT: zipcodes (2002) WebCat2.0 [format thousands .0f] no go (1997) Bug Report, maybe (1997) Surprise x and y post args (1998) Virtual Postcards (1998) [OT] Half completed orders (2005) [OT] Communigate List (2003) Listserver problem (1997) WebCat2 Append problem (B14Macacgi) (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) [WebDNA] Crontab to execute DNA (2012) WebCat2b15MacPlugin - [protect] (1997) Public beta 5 of WebCatalog 4.0 is now available (2000) problems with 2 tags (1997) transferring values (1998) WebCat2.0 acgi vs plugin (1997) Summ=T Problem (1997) Where is f2? (1997)