Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

173
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda