Lets say for example:
$(\".button\").click(function() { $.post(\"commandrunner.php\", { param1: \'value\', param2: \'val
The keyword "this" is bound to the scope of a function. To reference other parent scopes you need to store the reference in appropriate scoping variables, such as var parentScope = this;
var parentScope = this;