Microsoft
Software
Hardware
Network
Question : JS Object Key Variable?
var tool = 'something'
stack = { tool : 'data'}
it always returns key as "tool" instead of the value of "tool" which is "something"
im trying to accomplish the following in JS but here is a PHP example
$tool = "something";
$stack[$tool] = data;
i know its not pretty.....
Answer : JS Object Key Variable?
use :
1: 2: 3: 4:
var stack = {}; var tool = 'something'; stack[tool] = 'data'; //alert(stack.something);
Random Solutions
Backup Exec 12
looking for best web designer.
How to Setup Mandatory Profiles Server 2008 R2
Firing jQuery on key press action
CodeDom and Windows Forms
I have designed an website in flash as well in html, if the browser dont have flash then i want them to be directed to the html version, or else they need to directed to flash version
Deploy Printers Using Windows 2008 R2 GPO to Windows XP Pro Clients and Removing all current printers
SQL 2008 Job can't start/stop services
page set up in a word
DELL LATITUDE D610 80GIG STUCK IN BOOT LOOP