Changes between Initial Version and Version 1 of HealthGuruJS
- Timestamp:
- 09/10/09 21:48:58 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HealthGuruJS
v1 v1 1 '''HealthGuru.js''' 2 This is instanstiated globally as HG[[BR]] 3 4 Checking if logged in 5 {{{ 6 if(HG.isLogged()){ 7 alert("Username: "+HG.options.username + " whose ID is "+ HG.options.userId + " is Logged IN!"); 8 } 9 }}} 10 11 Logging in ajax way (after an ajax request for login in anyway you did, do this) 12 {{{ 13 if(HG.login({username:response.username, userId: response.userId })){ 14 alert("Logged In"); 15 } 16 }}}