I don't think you can name variables as varname[name] and access them like
that in javascript unless
varname[name] is initialize where varname is an array and name=index in that
array and it must be defined first.
I believe you will have to change the naming convention from var[keyname] to
var_ke
Morten Winkler Jørgensen wrote:
>
>You will have to declare
>
>
> myArray = new Array();
>
> myArray[0] = "a string";
> myArray[1] = 11;
> myArray[2] = new Array();
>
>
>since JavaScript 1.2 has arrays implemented.
>
Thanks for that, but my problem be
Joseph,
You will have to declare
myArray = new Array();
myArray[0] = "a string";
myArray[1] = 11;
myArray[2] = new Array();
since JavaScript 1.2 has arrays implemented.
Kind regards,
Morten Winkler
--
PHP General Mailing List (http://www.php.net
G'day,
I was wondering if anyone knows how to get the following to work:
--snip from head--
//-->
function validateForm(theForm) {
if ( theForm.input[name].value == "" ) {
alert("You must type a value for NAME.");
theForm.input[name].focus();
return false;
}
}