Ask a Question related to Dreamweaver AppDev, Design and Development.
-
-D- #1
javascript array and loop question
I'm passing in a comma delimited list as a parameter to a function.
Ex. the argument passed in holds the following values: 1, 2, 3, 4, 5,
I need to place those values into array, which I think I can do using the
split method:
myArray = myList.split(",");
Once I have the values in an array, I need to setup a loop to cycle through
all values in the array and use the each array index value perform some
routines.
I'm not sure how to setup the loop? Is there a UBound method in Javascript?
How do I identify how many values are in the array?
for(x=0; x <= ?; x++)
execute code...myArray[1]
Thanks,
-D-
-D- Guest
-
loop through array to build a new array
If I combine the following 2 functions (accesses by clicking a checkbox), as result the new array does not contains all items that matches the... -
if/loop/array question
I'm trying to display an add or delete button dependent upon logged in user and I can't figure it out. Can someone please help with the... -
array data matches but array created in loop doesn't work
I have the exact same data in two arrays, but only the array created like so will work: $spaw_imglibs = array( array( 'value' =>... -
loop in javascript
Hi! I have a menu-system in JavaScript. The menu is displayed by two js functions ( DrawMenuBar and DrawSubMenu ). the first function displays... -
Question on Dynamic Array/Nested Loop approach
Hello, I have the following code which populates as table data from a SQL Server 2000 stored proc (RSByDemoID2). Below that is the view and... -
Julian Roberts #2
Re: javascript array and loop question
Try
for(x=0; x < myArray.length; x++)
--
Jules
[url]http://www.charon.co.uk/charoncart[/url]
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004
Julian Roberts Guest



Reply With Quote

