Re: [WebDNA] Non-numbers entered into a field that asks for a
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101608
interpreted = N
texte = Thanks, Gary, but I think the code I based that on originally came from C=harles Kline. I can't=20remember anymore, it's been so long. On that note, I was credited with th=e "random password=20generator" code on WebDNA.us (which is similar to this, but again, it ori=ginally came from someone=20else, Kline I think. At any rate, yes this is exactly what makes this lis=t so great and durable.-DanOn Wed, 10 Dec 2008 14:51:53 -0800 "Gary Krockover"
wrote:> Again - isn't this exactly what a list-menu is for?>=20> (nice code Dan - just saying....)>=20> GJK>=20> On Wed, 10 Dec 2008 14:41:56 -0800> "Dan Strong" wrote:>> This is a longer, less elegant way, but for archive sake=20>>here's an alternative:>>=20>> ---------------------------------->> [text]goodChars=3D1234567890[/text]>> [text]inputLength=3D[countchars][user_input_field][/countchars][/text]>> [loop start=3D1&end=3D[inputLength]]>> [text]x=3D[getchars=20>>start=3D[index]&end=3D[index]][user_input_field][/getchars][/text]>> [hideif [goodChars]^[x]]>> Bad Character ([redirect] back to form w/error or=20>>whatever)>> [/hideif]>> [/loop]>> ---------------------------------->>=20>> I just did this off the top of my head, so it's=20>>untested, but I've successfully used similar code in the=20>>past.>> -Dan
Associated Messages, from the most recent to the oldest:
Thanks, Gary, but I think the code I based that on originally came from C=harles Kline. I can't=20remember anymore, it's been so long. On that note, I was credited with th=e "random password=20generator" code on WebDNA.us (which is similar to this, but again, it ori=ginally came from someone=20else, Kline I think. At any rate, yes this is exactly what makes this lis=t so great and durable.-DanOn Wed, 10 Dec 2008 14:51:53 -0800 "Gary Krockover" wrote:> Again - isn't this exactly what a list-menu is for?>=20> (nice code Dan - just saying....)>=20> GJK>=20> On Wed, 10 Dec 2008 14:41:56 -0800> "Dan Strong" wrote:>> This is a longer, less elegant way, but for archive sake=20>>here's an alternative:>>=20>> ---------------------------------->> [text]goodChars=3D1234567890[/text]>> [text]inputLength=3D[countchars][user_input_field][/countchars][/text]>> [loop start=3D1&end=3D[inputLength]]>> [text]x=3D[getchars=20>>start=3D[index]&end=3D[index]][user_input_field][/getchars][/text]>> [hideif [goodChars]^[x]]>> Bad Character ([redirect] back to form w/error or=20>>whatever)>> [/hideif]>> [/loop]>> ---------------------------------->>=20>> I just did this off the top of my head, so it's=20>>untested, but I've successfully used similar code in the=20>>past.>> -Dan
"Dan Strong"
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:
three cart questions (1997)
Auto entering Friday's date in a field (2002)
international time (1997)
RE: Can't get appendfile to work (1997)
Error Log (2000)
how to use WebCat w. SSL & CyberCash (1998)
Hosting (1998)
Client-side Image Maps and WebCat? (1998)
Multiple prices (1997)
Running 2 two WebCatalog.acgi's (1996)
[ShowNext] feature in 2.0 (1997)
Multiple cart additions (1997)
Does update cart input have to be a submit? (2005)
WebCat2 - Getting to the browser's username/password data (1997)
Authenticate and IIS (1997)
Can't add a field (1998)
[format 40s]text[/format] doesn't work (1997)
two domains and one cart and database (2000)
[WebDNA] 8.0.2 Install on Yosemite (2015)
showif field is number (1997)