?
Solved

Spry Validation with no spaces in Dreamweaver CS5

Posted on 2010-08-28
3
Medium Priority
?
767 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 2000 total points
ID: 33551742
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
ID: 33553173
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
ID: 33555579
Works perfectly, thanks so much!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

777 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