Solved

Spry Validation with no spaces in Dreamweaver CS5

Posted on 2010-08-28
3
759 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 500 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

738 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