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:

    CC Merchant suggestions?? (1997) Don'y know if this is a sily question... (2003) [LINEITEMS] (2000) [WebDNA] server admin newbie: what does webdna need owner to be to allow writing? (2010) PCS Frames (1997) [OT] - CyberCash/Verisign (2001) [foundItems] context problem (2000) Download Question (1997) RAM variables (1997) template includes encrypted template (1999) bug in listwords? (1998) Secure Server (1997) Searchable list archive (1997) page redirect in webDNA (1997) Review comparison by PC Magazine: Open for On-line Business (1997) Quit revisited (1997) Advice on MacOS & TCP Connects (2000) inconsistent webcat calculation? (1997) unsubscribe, try 2 (2000) [LOOKUP] (1997)