PDA

View Full Version : new to JavaScript, need help



rsines
02-01-2008, 08:13 PM
:) thanks for the help and info

jackbenimble4
02-02-2008, 01:01 AM
Your problem is with the syntax you are using to get and set elements of the array.

Instead of using:

unp.0 = "username1:/password1:user1.html";

Use:

unp[0] = "username1:/password1:user1.html";

And to help you understand the syntax of arrays in Javascript, check out this article: The JavaScript Array: Definition and Syntax (http://jennifermadden.com/javascript/arraySimple.html)