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
Grid inline editing
forms and cgi - calling a subroutine rather than separate cgi script
Web server in DMZ to access SQL server on INSIDE
How can I tied up a JQuery event after a Postback?
Exchange 2007 ccr failover did not function correctly last night
screenshot on mac
Backbone switch best practice
characters per inch and font points
setting SMTP server - please see attached file - it is not working
Access Report - Where Condition