Help with Javascript: naming variables using other variables



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
.



Relevant Pages

  • XMLHttpRequest and AJAX for PHP programmers
    ... Although the concept isn't entirely new, XMLHttpRequest technology is ... There are too many PHP programmers avoiding any ... work with javascript beyond simple form validation, ...
    (comp.lang.php)
  • VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help
    ... Job is to convert that JAVASCRIPT code into SIMPLE VBA code ... Here's a bookmarklet that will tell you whether or not the browser ... JS sends request to the server (to a PHP script) ... This is the PHP script. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted
    ... Job is to convert that JAVASCRIPT code into SIMPLE VBA code ... Here's a bookmarklet that will tell you whether or not the browser ... JS sends request to the server (to a PHP script) ... This is the PHP script. ...
    (microsoft.public.vb.6.webdevelopment)
  • VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help
    ... Job is to convert that JAVASCRIPT code into SIMPLE VBA code ... Here's a bookmarklet that will tell you whether or not the browser ... JS sends request to the server (to a PHP script) ... This is the PHP script. ...
    (microsoft.public.vb.controls.internet)
  • Re: How do we get there from here?
    ... > 'AJAX approach'? ... I am using php and ajax, ... linked to the page back to the server, which could be a php script. ... but is not an entire page) to the JavaScript. ...
    (comp.databases.pick)