|
-
Sep 11th, 2007, 05:12 PM
#1
Thread Starter
New Member
JavaScript Prompts Are Not Prompting in FFX
This is my first time posting (newbie here/just started to program), hope someone can help.
I am working on a simple form which consists of four fields (first name, last name, email and a comment box). The JavaScript (as follows) works accordingly by prompting a box telling the user to fill in all fields if they are not all completed...in IE. However, this is not the case in FFX. In FFX, I am able to submit the form w/ or w/out any of the fields filled out.
Note: a simple Access database is set up on a sever and processes the asp.form - information is collected, in FFX and in IE w/out any hiccups.
Here's the code (note, I omitted the comment.value since it was breaking the rest of the page).... Thanks in advance.
blkx
JS code:
function validateContactUs()
{
if ((contactus.firstname.value == "") || (contactus.lastname.value == "") || (contactus.email.value == ""))
{
alert("All fields are required!");
return false;
}
return true;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|