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
Windows Update on ISA 2006 Server
SATA hot swap in windows server 2008 (URGENT)
HP-UNIX - compressing/zipping files that are 31GB
How to setup zywall 10w firewall gateway
Error:Operating system error code 3(The system cannot find the path specified.) doing BulkInser in a SQL Query
Insert into MySQL Table from MSSQL Insert Trigger
How can I change the created and/or modified date of a FOLDER?
"Ad Zoo .Net" ??
How to clone Windows 2008 server
Multiple MS Access Database connection problem...