I have the following code
var test;
$.ajax({
type: \"GET\",
url: \"../views/person/controller.php?actor=person&action=checkAge\",
What happens when you remove "var" before the term "test" when you declare it?
I'm not sure how the call back function is treated with jQuery , as it is wrapped within a few other extended methods.. But the reason i say leave var out in the declaration of the test variable is that var assigns test to be relative to the scope. If your callback is being treated in a certain way, you may lose the scope where test is defined. You may want to drop the var assignment and leave it as a global variable. Perhaps this will make it visible?
EDIT:: Didn't realize you were referencing the term within a function call after the async request -- i would suggest including the last statement within your callback.
:)