> When i call this function the return always false. Obviously because
> onsuccess create another function and it doesn't change the value of
> external variable.
> I'm asking for you guys if there's some way to change the value of
> variable logged based on the return of the ajax call? Or there's a way
> inside onSuccess to return the response to the caller function?
Your function userLogged has (in general) finished and returned before
the Ajax call returns - probably before it is even sent.
You need to restructure your code to take account of the asynchronous
nature of Ajax (don't be tempted to run it synchronously: this is a
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at