Difference between revisions of "Pandora - Sample - Login Script"
From SmartWiki
(Created page with '==Sample - Login Script== The following function is an example of a login script. ==Sample Code== <PRE> <SCRIPT type="text/javascript" language=JavaScript src="/Ajax/uta/uta.j…') |
|||
Line 15: | Line 15: | ||
} | } | ||
</PRE> | </PRE> | ||
+ | |||
+ | [[Category - Pandora]] |
Revision as of 15:15, 26 July 2010
Sample - Login Script
The following function is an example of a login script.
Sample Code
<SCRIPT type="text/javascript" language=JavaScript src="/Ajax/uta/uta.js"></SCRIPT> <script language="javaScript"> ss_developer_key="9KbwtNK4LPJRFEO6KaHr0dGCgPz+2ycZENBfEc2H1Qw="; function login(user,pwd) { var rs= session_login(false ,'callbk',113,user,pwd); //where 113 is rootcompanyid alert(rs.getfieldbyname(1,'userid')); //userid for sucessful login else-1 alert(rs.getfieldbyname(1,'msg')); //Message of failed login }