Proyectos de Subversion LeadersLinked - SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3 efrain 1
<html>
2
    <head>
3
    </head>
4
    <body>
5
    <form name="form" id="form" action="https://dev-services.leaderslinked.com/signin" method="post">
6
    <label for="email">Correo</label>
7
    <input type="text" id="email" name="email" value="santiago.olivera@leaderslinked.com" />
8
    <label for="password">Clave</label>
9
    <input type="password" id="password" name="password" value="**9889CESAMSluz*" />
10
    <input type="submit" value="Enviar" />
11
 
12
    </form>
13
    </body>
14
    <script src="jquery.js"></script>
15
    <script>
16
    jQuery( document ).ready(function( $ ) {
17
 
18
        $('form').submit(function(e) {
19
         	$.ajax({
20
   				'dataType'  : 'json',
21
         		'accept'    : 'application/json',
22
            	'method'    : 'post',
23
              	'url'       : $('#form').attr('action'),
24
        		'data'      : $('#form').serialize(),
25
        		'headers'	: { 'Origin': 'dev.leaderslinked.com' }
26
     		}).done(function(response) {
27
            	console.log(response);
28
 
29
         	}).fail(function( jqXHR, textStatus, errorThrown) {
30
                 console.log(textStatus)
31
         	});
32
           	return false;
33
        });
34
 
35
 
36
 
37
    });
38
    </script>
39
</html>