Solved

Spry Validation with no spaces in Dreamweaver CS5

Posted on 2010-08-28
3
726 Views
Last Modified: 2012-05-10
Hi all,
I have a site in which I have a user setup form. I have a UserID Spry Validation Text Field that I need to have locked so it does not accept spaces. It needs to accept only Alphanumeric characters. I keep playing with the patterns but I can't figure out how to make a pattern accept a min / max value. I am using Dreamweaver CS5. Any ideas?

Thanks.
Jon
0
Comment
Question by:Jon DeVito
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
Comment Utility
Hi Jon,

You can't really do this with Spry because once you specify a custom pattern you sort of lose the ability to deal with min and max chars.  There's a REALLY long and complex way to make Spry do it, but your best bet is to just use a simpler Javascript function to remove the spaces automatically:

http://www.mediacollege.com/internet/javascript/form/remove-spaces.html

0
 
LVL 3

Author Comment

by:Jon DeVito
Comment Utility
Hi Jason. This looks exactly like what I need. I'm away until late tonight so I'll let you know by tomorrow if this works for me. Thanks so much!

Jon
0
 
LVL 3

Author Closing Comment

by:Jon DeVito
Comment Utility
Works perfectly, thanks so much!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now