Advertisement

10.18.2000 at 10:17AM PDT, ID: 11590978
[x]
Attachment Details

Client Side Validation

Asked by DarrenD in JavaScript

Hi,

What I am trying to do is display a message on screen without using the Alert() or the innertext property as this is not supported by Netscape.

Situation:
I have a page with a Submit button and text box on it.

When the user presses submit and the text box is empty.
I want a message to appear telling the user the text box is empty but without using server side scripting.

I have done this using the innertext property of a <Div> element and it works fine in IE.

But my problem is that this will not work in NS Is there any alternative way of doing this which will work for both IE and NS.

thanks

Darren

Start Free Trial
[+][-]10.18.2000 at 11:24AM PDT, ID: 4794599

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.18.2000 at 12:26PM PDT, ID: 4795641

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.18.2000 at 02:20PM PDT, ID: 4798252

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.18.2000 at 02:42PM PDT, ID: 4798701

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.19.2000 at 01:28AM PDT, ID: 4804341

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.19.2000 at 02:05AM PDT, ID: 4804881

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Sign Up Now!
Solution Provided By: ssathya
Participating Experts: 3
Solution Grade: A
 
 
[+][-]10.19.2000 at 02:20AM PDT, ID: 4805021

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10.19.2000 at 02:20AM PDT, ID: 4805022

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.19.2000 at 02:31AM PDT, ID: 4805139

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32