Help with Javascript: naming variables using other variables
- From: sagejoshua <sagejoshua@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 06 Nov 2005 11:36:58 -0500
Help!
Is there a way to declare a variable name using other variables in
Javascript? In PHP, it's done with something like:
<?php
$var1 = "foo";
${$var1.bar} = "great!";
print $foobar;
// Outputs "great!"
?>
Is there a similar method in Javascript?
Thanks.
Josh
.
- Follow-Ups:
- Re: Help with Javascript: naming variables using other variables
- From: X l e c t r i c
- Re: Help with Javascript: naming variables using other variables
- From: Jonathan N. Little
- Re: Help with Javascript: naming variables using other variables
- Prev by Date: Re: tables in firefox!!
- Next by Date: Re: Please help me create a scrolling text box
- Previous by thread: tables in firefox!!
- Next by thread: Re: Help with Javascript: naming variables using other variables
- Index(es):
Relevant Pages
|