Re: [OT] Javasript Help
This WebDNA talk-list message is from 2006
It keeps the original formatting.
numero = 66859
interpreted = N
texte = The following did not work for me. Are able to work the code with a positive number?Bill
-----Original Message-----From: Donovan Brooke
Sent: Thu, 13 Apr 2006 18:45:30 -0500To: "WebDNA Talk" Subject: [OT] Javasript HelpHello,I have a very simple javascript that I need to edit, but myjavascript is pretty bad.Here it is:ONBLUR="javascript:if(!validate(this.value, '^[0-9]{0,}[.]{0,}[0-9]{0,}$', 'is not a valid number.')){this.focus();}"This basically prompts a message to the user if they addsomething besides a number. However, I want to be able toadd negative numbers. (-26.5). How would I allow the "-"?Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Custom Paint, Labels, and Specialty Signage. -> <- Home and Business Embellishment/Fabrication, -> <- Glass Blowing, and Art Glass -> PH/FAX:> 1 (608) 835-2476 Web:> http://www.egg.bz | http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
The following did not work for me. Are able to work the code with a positive number?Bill-----Original Message-----From: Donovan Brooke Sent: Thu, 13 Apr 2006 18:45:30 -0500To: "WebDNA Talk" Subject: [OT] Javasript HelpHello,I have a very simple javascript that I need to edit, but myjavascript is pretty bad.Here it is:ONBLUR="javascript:if(!validate(this.value, '^[0-9]{0,}[.]{0,}[0-9]{0,}$', 'is not a valid number.')){this.focus();}"This basically prompts a message to the user if they addsomething besides a number. However, I want to be able toadd negative numbers. (-26.5). How would I allow the "-"?Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Custom Paint, Labels, and Specialty Signage. -> <- Home and Business Embellishment/Fabrication, -> <- Glass Blowing, and Art Glass -> PH/FAX:> 1 (608) 835-2476 Web:> http://www.egg.bz | http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
devaulw@onebox.com
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:
Unexpected comparison behavior change in 4.5.1 (2003)
[WebDNA] WebDNA code displaying on page (2012)
Showif with an or (2003)
ah ha (2002)
Security Tip (1996)
New Web Site Developers Database (1996)
PCS Frames (1997)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
PCS Frames (1997)
Multiple catalog databases and showcart (1997)
ie Posting error (2000)
Is this possible in simple search? question? (1998)
Nesting WebDNA in JavaScript (2003)
serial number generation (1997)
PIXO support (1997)
WebDNA FAQ or FAQs (2004)
Show next 2 examples that work (1997)
SOLUTION? Me know logical no need (2002)
decrypt - encrypt (1999)
MATH TIME (1997)