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
iPad Camera Connection Kit does not display .jpg images on iPad
Outlook 2007 does not remember password.
perl regexp with div tags and space
Remove space from textbox automatically
Problems installing the AjaxControlTooKit.dll
what is the default directory to run jsp file from tomcat 5.5 and what directory for mysql_connector.jar file to be placed?
asp - The resource could not be found
100% CPU usage in vCenter but not in taskmanager on the Windows NT 4.0 VM that has been converted
Remove header from array created using Get-QADComputer cmdlet?
Dynamically passing the parameter the service constructor (without configuration file)