Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Programming > Other Programming - Perl, C++, Java, ASP, .NET Development
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-20-2005, 01:46 PM   #1 (permalink)
larryp
Junior Member
 
Join Date: Oct 2005
Posts: 1
Default Java Scripting Help

I have downloaded some Java Script for form validation (Form Validator), inserted it in my ASP page and it works fine. In the Validator.js I would like one more validation process, checking for EMPTY, blank or null input fields in my form.

Is there anyone familiar with this form validator? Can anyone give me similar code that would fit into validator.js?
larryp is offline   Reply With Quote
Sponsored Links
Old 10-21-2005, 06:11 PM   #2 (permalink)
xacto
Junior Member
 
Join Date: Jun 2005
Posts: 13
Default

tweak to fit your current script

if (form.your_form_field.value == "") {
alert( "Cannot leave empty" );
form.your_form_field.focus();
return false ;
}
return true ;

I have not tested but should get you close
xacto is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 05:04 AM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums