Was this article helpful?

Screen-set Hosted on Gigya

Last modified 07:18, 16 Sep 2014

The following example shows the default screen-set generated by Gigya's Screen-sets tool. The screen-set is hosted on Gigya's server, and loaded to the web-page using the accounts.showScreenSet.

See it in Action


Check Out the Code

    <title>Gigya User Management Test</title>
 	<SCRIPT type="text/javascript" lang="javascript" 
    <span style="font-size: 16px;font-weight: bold;letter-spacing: 1px;float: left;font-family: Arial;">

		<a href="#" onclick="gigya.accounts.showScreenSet({screenSet:'Default-RegistrationLogin', mobileScreenSet:'DefaultMobile-RegistrationLogin'});">Login</a>&nbsp;&nbsp;|&nbsp;&nbsp; 
		<a href="#" onclick="gigya.accounts.showScreenSet({screenSet:'Default-RegistrationLogin', mobileScreenSet:'DefaultMobile-RegistrationLogin', startScreen:'gigya-register-screen'});">Register</a>&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="#" onclick="gigya.accounts.showScreenSet({screenSet:'Default-ProfileUpdate', mobileScreenSet:'DefaultMobile-ProfileUpdate'});">Edit Your Profile</a>&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="#" onclick="gigya.accounts.logout({callback:onLogout});">Logout</a>&nbsp;&nbsp;&nbsp;&nbsp;


	function onLogout(response) {   
		if ( response.errorCode == 0 ) {                
			alert('You are now logged out'); 
		else { 
			alert('Error :' + response.errorMessage); 

In order to make this code work in your environment, please:
  • Click the "view source" icon (link located above code on the right hand side) - This will open a popup window with a text version of the code, which you may copy.
  • The API key in the sample will only work on http://localhost/...
  • To load the page from your domain, modify the value of the "APIKey" field in the code to your own Gigya API Key. A Gigya API Key can be obtained on the Site Dashboard page on Gigya's website. Please make sure that the domain from which you are loading the page is the same domain name that you used for generating the API Key.

Was this article helpful?
Pages that link here
Page statistics
111 view(s) and 2 edit(s)
Social share
Share this page?


This page has no custom tags.


You must to post a comment.