JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old May 13th, 2004, 06:54 AM
thinkingcloud_w thinkingcloud_w is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 thinkingcloud_w User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Please help me!!!

Hi, I am a newbie to javascript.

i am doing a online training form using vb script.

i would like to use 2 java scripts in my form. one for a java script calendar
and one for validate the form.

but when i combined them together, the calendar wont work anymore.

Could you help me PLEASE?????

here is the code:
Code:
<script language="JavaScript" src="jscript/calendar1.js"></script>
 
<!-- validate form script -->
<SCRIPT>
function validate() {
mTraineev=mainform.Trainee.value;
mDatev=mainform.TDate.value;
if (mTraineev=='') {
alert('Your full name is a required field. Please try again.');
event.returnValue=false;
}
if (mDatev=='') {
alert('Your must enter a training date or select it from the calendar.');
event.returnValue=false;
}
if (mainform.Team.options[0].selected) {
alert('Please your faculty/team.');
event.returnValue=false;
}
if (mainform.Training.options[0].selected) {
alert('Please choose one training from the list.');
event.returnValue=false;
}
if (mainform.TTime.options[0].selected) {
alert('Please choose a start time.');
event.returnValue=false;
}
if (mainform.duration.options[0].selected) {
alert('Please choose how long you would like to be trained.');
event.returnValue=false;
}
if (!(mainform.BeforeLevel[0].checked || mainform.BeforeLevel[1].checked || mainform.BeforeLevel[2].checked)) {
alert('You need to choose your level before training.');
event.returnValue=false;
}
}
</SCRIPT>

Last edited by colton22 : January 11th, 2007 at 10:30 PM. Reason: please use [CODE] tags...

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Please help me!!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway