If you want a global variable, set a global variable.
var isAuthenticated = false;
$(document).ready(function(){
// do your ajax here and set: isAuthenticated = true;
// in your success callback
});
On Jul 26, 5:27 am, FrenchiINLA mamali.sohe...@gmail.com wrote:
I would do like that:
I would do like that:
isAuthenticated function return true or false according the entry,
then check if is Authenticated, ajax to your php something like
if(isAuthenticated($('#username').val(), $('#password').val())) {
$ajax(
{
--
--
success: function(msg){
alert(msg=='authenticated')
}
}
);
}
2 matches
Mail list logo