Advertisement
mirantii

Order

Oct 24th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.90 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4.     <head>
  5.         <meta http-equiv="Content-Type" content = "application/json; charset = UTF-8">
  6.         <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  7.  
  8.        
  9.         <script>
  10.             $(document).ready(function(){
  11.                 $("#createOrder").click(function (){
  12.                     $.ajax({
  13.                         url: "https://api.hostway.com/orders/",
  14.                         dataType: 'jsonp',
  15.                         success: function (data) {
  16.                                 console.log("Success"+data.responseText);
  17.                                 $("#main-content").load(data);
  18.                             }
  19.                     });
  20.                 });
  21.             });
  22.         </script>
  23.  
  24.        
  25.        
  26.      
  27.        <title>ORDER FORM</title>
  28.     </head>
  29.    
  30.     <body>
  31.    
  32.         <header>
  33.             <h1>FLEXCLOUD SERVER</h1>
  34.         </header>
  35.  
  36.         <div id="main-content">
  37.             <div id="order-button">
  38.                 <button type="button" id="createOrder">Order!</button>
  39.             </div>         
  40.            
  41.     </body>
  42. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement