Version 1 (modified by faisal, 16 years ago) |
---|
HealthGuru?.js
This is instanstiated globally as HG
Checking if logged in
if(HG.isLogged()){ alert("Username: "+HG.options.username + " whose ID is "+ HG.options.userId + " is Logged IN!"); }
Logging in ajax way (after an ajax request for login in anyway you did, do this)
if(HG.login({username:response.username, userId: response.userId })){ alert("Logged In"); }