Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Judson #1
Javascript Array Dealing with .length
Say I have this looping for statement "And it works fine":
for (i=1; i<10; i++) {
obj = document.getElementById("rTable" + i);
if (obj == null) break;
if (obj.offsetHeight >= 268) {
obj.style.height="268px";
}
}
The problem is that I don't want to use i<10; because I don't know the exact
number.
I want to use the length of the array. So how do I set that up?
Thanks,
Judd
Judson Guest
-
array length question
Hi, I've been working with some different code to sort arrays. I used the built in cf function ArrayLen() to help me return the length of the... -
associative array length
Is there any way of knowing the length of an associative array? I could build a static function that does the job (iterates over the as. array and... -
Array length problem
I seem to have a problem with the "array length". I can't seem to find any info as to what this refers to. Can anyone tell what this means. I am... -
#24897 [Com]: array_multisort() will reindex the array but not if array length is 1
ID: 24897 Comment by: franklin_se at hotmail dot com Reported By: chro at sokrates dot uio dot no Status: ... -
#24897 [Opn->Asn]: array_multisort() will reindex the array but not if array length is 1
ID: 24897 Updated by: sniper@php.net Reported By: chro at sokrates dot uio dot no -Status: Open +Status: ...



Reply With Quote

