Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. document.getElementById('print').onclick = function(){Print()};
  2. function Print() {
  3. var param = 'zya';
  4. $.ajax({
  5. type: 'POST',
  6. url: '../degaps1.py',
  7. data: {param: param},
  8. success: function(response){
  9. output = response;
  10. alert(output);
  11. }
  12. });
  13.  
  14. degaps1.py
  15. import cgi
  16. import cgitb; cgitb.enable()
  17. print "Content-Type: text/html"
  18. print ""
  19. arguments = cgi.FieldStorage()
  20. print "test"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement