Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

167
Views
Ajax not working with CGI on an Apache webserver in Ubuntu

Hello I am trying to develop a simple webpage using CGI on the server side. My current goal is to submit a form without reloading the page via Ajax.

The CGI in Python:

#!/usr/bin/env python2

print("Content-Type: text/html \n\n")

f = open("ajax_input.html", "r")
print(f.read())

The Current Webpage:

<!DOCTYPE html>
<html>



        <script>
                $('form.ajax').on('submit', function(){
                        alert("Success")
                        return false;


                });
        </script>

        <body>
                <form method="post" class="ajax">
                        <input type="submit" value="Submission">
                </form>
                <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

        </body>
</html>
over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!