1. Bob A Guest

2. JG Guest

try<BR><BR>if () {<BR> alert("");<BR>}<BR>else if () {<BR> alert("");<BR>}<BR><BR><BR>you need to use the else if clause...

3. Bob A Guest

## Is there a Reason for this

Thanks for the reply<BR><BR>Is there a reason I should do it this way!<BR>Or JUST TRY IT you&#039;ll like it<BR>

4. Bob A Guest

Thanks AGAIN

5. JG Guest

## RE: Is there a Reason for this

because without the &#039;else&#039;, you will evaluate every if statement regardless of the previous one; for instance...<BR><BR>var x = 1;<BR>var y = 2;<BR><BR>if (x = 1) {print x}<BR>if (y = 2) {print y}<BR>.....this will print x & y<BR><BR>if (x = 1) {print x}<BR>else if (y = 2) {print y}<BR>.....this will print x only (if x != 1 then y would print)<BR><BR>am i making sense?...probably not...

6. Bob A Guest

## What you say is True BUT NO BEING ON THIS PROBLEM

You are right BUT I only have one value per Js Function<BR>it can not be be less than 1 or greater than 10 or spaces all at the same time. I&#039;m getting the same alert message TWICE for example<BR>Please enter your First Name. Maximum Characters 10<BR>

7. Join Date
Dec 1969
Posts
35

## Well then, try this

...since every function should return something (even if it&#039;s void) try this syntax :<BR>-----<BR>alert(msg);<BR>return false;<BR>-----<BR>Since you are finished and have found a breaking point, just break from the function. The syntax "return false;" will exit this function.<BR><BR>See if that helps;

8. ?????????? Guest

## THIS IS NOT ASP --- THIS IS JAVASCRIPT

Are you cross-posting this question or do you really want us to believe that this client-script is really ASP?.<BR><BR>Please post JavaScrtipt related issues, not pertaining to server-side ASP, in JAVASCRIPT FORUMS!!!

9. Bob A Guest

## What a Wimp

You WIMP!!!!!!!!!!!! while javascript is written here the problem is Netscape AND I TOOK ALL THE ASP CODE OUT JUST TO MAKE IT SIMPLE<BR>BUT YOU STILL DID NOT GET IT

10. Bob A Guest

## Try it ALSO no change BOY THIS IS SOMETHING

Thanks for Trying !!!!!!!!!!!

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•