Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.getElementById('print').onclick = function(){Print()};
- function Print() {
- var param = 'zya';
- $.ajax({
- type: 'POST',
- url: '../degaps1.py',
- data: {param: param},
- success: function(response){
- output = response;
- alert(output);
- }
- });
- degaps1.py
- import cgi
- import cgitb; cgitb.enable()
- print "Content-Type: text/html"
- print ""
- arguments = cgi.FieldStorage()
- print "test"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement