[OT] Javasript Help

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 66858
interpreted = N
texte = Hello, I have a very simple javascript that I need to edit, but my javascript 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 add something besides a number. However, I want to be able to add 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/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [OT] Javasript Help ( devaulw@onebox.com 2006)
  2. Re: [OT] Javasript Help ( Donovan Brooke 2006)
  3. Re: [OT] Javasript Help ( devaulw@onebox.com 2006)
  4. [OT] Javasript Help ( Donovan Brooke 2006)
Hello, I have a very simple javascript that I need to edit, but my javascript 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 add something besides a number. However, I want to be able to add 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/ Donovan Brooke

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:

[WebDNA] Apache configuration fail when... (2013) Off Topic: Frames Killer? (1998) WebCat2b13MacPlugIn - more [date] problems (1997) carriage returns in data (1997) Include a big block of text (1997) process SSI (1998) [BULK] [WebDNA] Using webdna to automate ftp on a Windows server (2012) Virtual Postcard almost complete... (1998) Sort Order on a page search (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Re:Emailer and encryption (1997) [sendmail] on NT? (1997) Updating a database once per day - An example (1998) Car Database (2002) Which Pref is faster? (1998) WC2.0 Memory Requirements (1997) One more try (1997) 2.0Beta Command Ref (can't find this instruction) (1997) How nuch ram??? (1997) WebCat2b13MacPlugIn - syntax to convert date (1997)