Solved

Generic multi purpose form validation

Posted on 2004-04-07
8
315 Views
Last Modified: 2012-05-04
Requirement:

1. Competible with 4+ browsers of IE, NS, AOL

2. Field names that are prefixed with "rq" are REQUIRED and cannot be empty. This will be applied to all form elements like: Text Box, Select Box, Check Box, Text Area...ect.

3. If user input "space" in the data, it should be IGNORED and is not count as "character" in evaluating. For example, if a required field has
a "space" (or more) without any real data then it still consider as empty although Javascript see it as having a "character". Automatically remove all spaces before and after of the content.

4. It must be dynamic so that it will loop throught the elements and validate only what available.

5. Depend on the character after the Prefix "rq", different rule is applied:
        n: allow only a to z, A to Z, "'" apostrophy, "-" dash, "." period.
        e: allow valid characters & rules for email address (test-1@abc.com)
        w: allow valid characters & rules for web URL address (www.abc.com), no http:// for consistency if exists.
        p: allow only digit from 0 to 9, "-" dash
        i: allow only integer: 0 to 9
        m: allow only 0-9,  "'" apostrophy, """ quotation mark and enforce measurement format like (5' 5")
        d: allow only 0-9, "/" slash and enforce date format like (MM/DD/YYYY)

For example:
  rqnMyName
  rqeMyEmail
  rqwMyWeb
  ....etc
0
Comment
Question by:andreni78
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 7

Expert Comment

by:TheKenman
ID: 10773552
Hi andreni78,

Wow, that's asking alot....even for 500pts.

The AOL bit I think is going to be the toughest.. AOL 4.0 should be using the underlying core of IE that is installed on the pc, *BUT*, to quote from AOL's website:

    "The AOL browser will support most of the capabilities that a user's external version of Internet Explorer does."

That sounds fine and all, but then the next sentence is:

    "There are various incompatibilities which may arise in the way the specific AOL clients interact with the Browser which can result in unexpected behaviors of the browser itself." (http://webmaster.info.aol.com/compatibility.html)

Basically, they are saying that the AOL browser is going to do some weird, unexpected and buggy stuff. And if the user has AOL 4.0 on a Mac, which uses a completely independant version of an embedded IE build, then the buggy stuff will be exponetially higher.

Not even sure how you'd test for AOL 4, unless you have special software to simulate this; none of my tools can though.
0
 
LVL 16

Expert Comment

by:jaysolomon
ID: 10774857
Is this homework?
0
 

Author Comment

by:andreni78
ID: 10796397
Hello TheKenman

I can devide this question into 3 parts so that you will have a total of 1500 points. I am a subscribed member so I have a lot of points to give. How should I best approach this issue?

On AOL, just try what you can. I am not picky about previous versions of AOL.

Please advise,

Andreni
0
 
LVL 25

Accepted Solution

by:
devic earned 500 total points
ID: 10796810
hi Andreni,

so i posted examples, probabaly you are testing now.
i hope the examples work :)
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:andreni78
ID: 10804383
Thanks Devic,

I am testing your solution and I will get back with you when I am done.

Andreni


0
 

Expert Comment

by:astro26
ID: 11060468
Where is the answer?
0
 
LVL 25

Expert Comment

by:devic
ID: 11060673
0
 

Expert Comment

by:astro26
ID: 11060745
sorry, I posted before looking..hahah, but this should be helpful for those unable to search.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

708 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

14 Experts available now in Live!

Get 1:1 Help Now