Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

classic asp form validation

New Here ,
Jul 10, 2011 Jul 10, 2011

Copy link to clipboard

Copied

Hi

I am currently using javascript to validate my contact form, but every now and again I am still receiving empty form fills. I cannot find a way of submitting the form without filling the mandatory fields. Is this because some people disable their javascript?

This is an example of my field:

<input type="text" name="name" id="name" size="22" value="name*" onfocus="if( this.value == 'name*') {this.value = '';}" onblur="if (this.value == '') { this.value = 'name*';}" />

I have an asp VB form validation script - but I would like a pop up message to appear instead of the error message appearing in the browser window. Is this possible to do server side?

If not can I use CSS so the field background color goes grey. The design of my form doesn't have space for error messages, so I am trying to find a way to show the errors with either a pop up message or just greying out the fields that are incomplete...

hope that makes sense and hope someone can help! thank you

TOPICS
Server side applications

Views

1.6K
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 10, 2011 Jul 10, 2011

Copy link to clipboard

Copied

LATEST

The pop up message is client side so that's client side. Have you looked into Spry validation or other Ajax solutions? I'm seeing these used more and more in forms over the traditional JavaScript popups or server side code that displays messages on the page when you have the space for them .

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines