Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8"/>
- <link rel="stylesheet" href="http://code.jquery.com/ui/1.8.18/themes/base/jquery-ui.css" type="text/css"
- media="all" />
- <link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css"
- media="all" />
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
- <script src="http://code.jquery.com/ui/1.8.18/jquery-ui.min.js" type="text/javascript"></script>
- <script src="http://jquery-ui.googlecode.com/svn/tags/latest/external/jquery.bgiframe-2.1.2.js"
- type="text/javascript"></script>
- <script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/minified/i18n/jquery-ui-i18n.min.js"
- type="text/javascript"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- var $form = $('#cmdwin-0.01');
- $form.live('submit', function(){
- tn = '0.01'
- $.post("/terps-"+tn, $form.serialize(), function(response){
- $('#output-'+tn).val(response); // For some reason, this line is definitely executed, but the corresponding element doesn't get updated.
- },'text');
- return false;
- });
- });
- </script>
- </head>
- <body>
- <form method="none" accept-charset="utf-8" enctype="multipart/form-data" id="cmdwin-0.01">
- <textarea id="commands" name="commands" rows="10" cols="70"></textarea>
- <br/>
- <textarea id="output-0.01" name="output" rows="5" cols="70"></textarea>
- <input type="submit" value="Access Database"/>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement