mentalhorse
12-30-2005, 06:18 PM
Hello. I am trying to make a number variable that takes the number of the amont of information in an array. 0bviously,
So here is my code involved.
// Below is the actualy array
function motherShip() {
var pain_in_butt = new Array();
for (index=0;index < number_of_rows;index++) {
pain_in_butt[index] = "<br />" }
}
// Bolded is where I try to refer to the .length of the pain_in_butt array
function theMath() {
var index_a = pain_in_butt.length;
for (index5=0;index5<index_a;index5++){
document.write("testing"); }
}
I am farely new to Javascript. I have tried putting document.pain_in_butt.length.
So here is my code involved.
// Below is the actualy array
function motherShip() {
var pain_in_butt = new Array();
for (index=0;index < number_of_rows;index++) {
pain_in_butt[index] = "<br />" }
}
// Bolded is where I try to refer to the .length of the pain_in_butt array
function theMath() {
var index_a = pain_in_butt.length;
for (index5=0;index5<index_a;index5++){
document.write("testing"); }
}
I am farely new to Javascript. I have tried putting document.pain_in_butt.length.