Thanks for the pointers, DaButcher, but it still doesn't work. I used:
<script language="JavaScript">
<!--
function myFunction1(a1,a2,a3)
{
b1=a1.value;
b2=a2.value;
b3=a3.value;
document.write('FROM myFunction1 PARAMETERS:<br>b1='+b1+'<br>b2='+b2+'<br>b3='+b3+'</p>');
myFunction2(b1,b2,b3);
}...
Hi. I tried both ways and still have problems:
I tried:
function myFunction1(a1,a2,a3)
{
//b1=a1.value;
//b2=a2.value;
//b3=a3.value;
document.write('FROM myFunction1 PARAMETERS:<br>a1='+a1+'<br>a2='+a2+'<br>a3='+a3);
myFunction2(a1,a2,a3);
}
function myFunction2(a1,a2,a3)
{
x1=a1;
x2=a2...
I think the problem is more basic, to do with how I'm calling one function within another.
I tried the following script and got "Undefined" in the second function. Am I being really stupid??
<script language="JavaScript">
<!--
function myFunction1(a1,a2,a3)
{
b1=a1.value;
b2=a2.value...
HI. I'm trying to do something similar but also having problems.
I'm creating a form with dynamic fieldnames from a MySQL database. So the forms are named with a variable element $i using PHP as follows: Price$i, Quantity$i and Total$i.
I then pass these parameters to a calculate function as...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.