Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.28 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.         <head>
  4.         <script type="text/javascript" src="jquery.js"></script>
  5.         <meta Content-Type: text/html, application/xhtml+xml, */*>
  6.         <meta Accept:text/html, application/xhtml+xml, */*>
  7.     </head>
  8. <style>
  9.     div
  10.     {
  11.         height: 25px;
  12.         width: 100px;
  13.         color: red;
  14.     }
  15.     div:hover
  16.     {
  17.         background: green;
  18.     }
  19. </style>
  20.  
  21. <body>
  22.    
  23. <form action="https://tickets.manserv.net/login" method="POST">
  24.  
  25.   <input name="username" value="NE7B">
  26.   <input type="password" name="password" value="">
  27.   <input name="authenticity_token" type="hidden" value="token_value">
  28.   <div id="login">
  29.     Click me braa
  30.   </div>
  31.  
  32. </form>
  33.  
  34. <script>
  35.                     $("#login").get( "https://tickets.manserv.net/issues.xml?key=[APIKey]", function() {
  36.                   alert( "success" );
  37.                 })
  38.                   .done(function() {
  39.                     alert( "second success" );
  40.                   })
  41.                   .fail(function() {
  42.                     alert( "error" );
  43.                   })
  44.                   .always(function() {
  45.                     alert( "finished" );
  46.                   });
  47.  
  48.    
  49.    
  50.    
  51. /*
  52.             $("#login").click(function (event) {
  53.                 $.post("https://tickets.manserv.net/login", { authenticity_token: $('#authenticity_token').val(), username: $('#username').val(), password: $('#password').val() } );
  54.                 alert( "Handler for .click() called." );
  55.             });*/
  56. </script>
  57.  
  58. </body>
  59. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement