Changes between Initial Version and Version 1 of HealthGuruJS

Show
Ignore:
Timestamp:
09/10/09 21:48:58 (16 years ago)
Author:
faisal (IP: 216.214.144.156)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HealthGuruJS

    v1 v1  
     1'''HealthGuru.js''' 
     2This is instanstiated globally as HG[[BR]] 
     3 
     4Checking 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 
     11Logging 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}}}