User Tools

Site Tools


special_landing_page_that_redirects_user_before_submitting_a_password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
special_landing_page_that_redirects_user_before_submitting_a_password [2016/08/11 17:18]
lucy
special_landing_page_that_redirects_user_before_submitting_a_password [2019/05/22 17:34] (current)
lucy
Line 1: Line 1:
-In some cases of a web based simulation you might only want to check if a user would actually enter a password in a form field but you don't want to actually let him enter the full password. In such a case you could place a little ajax script that automatically redirects the user to some awareness content before pressing the submit button. In the example below the user would be able to enter his username, but the moment he entered 3 digits of his password he automatically gets redirected to a different page (in this case google which you would replace with your elearning ​content).+In some cases of a web-based simulationyou might only want to check if a user would actually enter a password in a form field but you don't want to actually let him enter the full password. In such a case you could place a little ajax script that automatically redirects the user to some awareness content before pressing the submit button. In the example below the user would be able to enter his username, but the moment he entered 3 digits of his password he automatically gets redirected to a different page (in this case google which you would replace with your eLearning ​content).
  
-First you need to download http://​code.jquery.com/​jquery-1.12.1.min.js and place it within your static directory:+Firstyou need to download http://​code.jquery.com/​jquery-1.12.1.min.js and place it within your static directory:
  
 {{ jquery.png?​600 }} {{ jquery.png?​600 }}
  
-Next you can create a login page as the following {{:​index.html.zip|example}}. Please note that you the path to the script needs to adapted (in case you generate the template with the general section to /admin/.. or if you create the template within a campaign to /​campaign/​..)+Nextyou can create a login page as the following {{:​index.html.zip|example}}. Please note that you the path to the script needs to adapted (in case you generate the template with the general section to /admin/.. or if you create the template within a campaign to /​campaign/​..)
  
  
  
  
special_landing_page_that_redirects_user_before_submitting_a_password.1470928725.txt.gz ยท Last modified: 2016/08/11 17:18 by lucy