Advertisement
Hppavilion1

*Sigh*

Dec 12th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.63 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4.     <head>
  5.         <meta charset="utf-8"/>
  6.         <link rel="stylesheet" href="http://code.jquery.com/ui/1.8.18/themes/base/jquery-ui.css" type="text/css"
  7.              media="all" />
  8.         <link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css"
  9.              media="all" />
  10.         <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
  11.         <script src="http://code.jquery.com/ui/1.8.18/jquery-ui.min.js" type="text/javascript"></script>
  12.         <script src="http://jquery-ui.googlecode.com/svn/tags/latest/external/jquery.bgiframe-2.1.2.js"
  13.                type="text/javascript"></script>
  14.         <script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/minified/i18n/jquery-ui-i18n.min.js"
  15.                type="text/javascript"></script>
  16.  
  17.         <script type="text/javascript">
  18.             $(document).ready(function(){
  19.                 var $form = $('#cmdwin-0.01');
  20.                 $form.live('submit', function(){
  21.                     tn = '0.01'
  22.                     $.post("/terps-"+tn, $form.serialize(), function(response){
  23.                         $('#output-'+tn).val(response); // For some reason, this line is definitely executed, but the corresponding element doesn't get updated.
  24.                     },'text');
  25.                     return false;
  26.                 });
  27.             });
  28.         </script>
  29.     </head>
  30.  
  31.     <body>
  32.         <form method="none" accept-charset="utf-8" enctype="multipart/form-data" id="cmdwin-0.01">
  33.             <textarea id="commands" name="commands" rows="10" cols="70"></textarea>
  34.             <br/>
  35.             <textarea id="output-0.01" name="output" rows="5" cols="70"></textarea>
  36.             <input type="submit" value="Access Database"/>
  37.         </form>
  38.     </body>
  39. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement