Solved

textbox validation

Posted on 1998-10-30
2
196 Views
Last Modified: 2013-12-25
hi,
I've a form which contains four textboxes.i have to validate the textboxes before i click the submit button.
i have written the code in the onclick()event of the submit button.Though i'm able to validate this but the form gets posted to the asp i've mentioned.In javascript i heard its possible but i want this to be done in vbscript.please let me know with code.thanx.
0
Comment
Question by:rvsamuel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 50 total points
ID: 1856041
make the submit button like this:

<input type="submit" onClick="return Validate()">


The function Validate() should then return "true" or "false".
If true then the form is submitted, if false, then it's not submitted.

Why use VBScript for this ? Or do you mean server-side script (ASP) ?

0
 

Author Comment

by:rvsamuel
ID: 1856042
no i want the validations to be done at the client's side thats why i want it in vbscript.
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
$q.all is slower or not  in  Angularjs 2 37
PHP Curl to output a url 7 89
Website Question - New Site 3 34
HTML CSS and  Table design 4 15
Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime is disastrous for companies and can lead to major hits on a brand, reputation, an…
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

730 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