Advertisement

07.01.2008 at 07:50PM PDT, ID: 23532358
[x]
Attachment Details

Need to pass a form name to a Java Script in a separate file

Asked by drleewood in JavaScript

Tags: Java Script

Would like to pass the name of the form to a java script that error checks the fields on that page.  The java script will then check each field that needs to be non-blank as follows where the form name is PilotOrder but will be other forms with the same fields.

function FieldCheck()
{
var fn=parseInt(document.PilotOrder.CUSTOM1.value);
if (fn == "")
 returnval=true;
else
{
alert("Please enter UAL file number");
returnval=false;
}
return returnval;
}
Start Free Trial
 
Loading Advertisement...
 
[+][-]07.01.2008 at 09:05PM PDT, ID: 21913376

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.

 
[+][-]07.01.2008 at 09:13PM PDT, ID: 21913414

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.

 
[+][-]07.04.2008 at 07:40AM PDT, ID: 21933371

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.

 
[+][-]07.04.2008 at 05:22PM PDT, ID: 21935350

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
Tags: Java Script
Sign Up Now!
Solution Provided By: hielo
Participating Experts: 2
Solution Grade: B
 
 
[+][-]07.07.2008 at 06:25AM PDT, ID: 21944748

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.

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