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

128
Views
Envío de múltiples respuestas al servidor

Quiero enviar la identificación del botón cuando se hace clic en el botón. Pero cuando hago clic en el botón, envía 10 solicitudes xhttp al servidor, debería enviar solo una. No soy capaz de averiguar el problema.

 <HTML> <head> <script> function fun1(element) { var xhttp = new XMLHttpRequest(); xhttp.open("GET", "/pre?"+element.id, true); xhttp.send(); //alert(element.id); } </script> </head> <body> <button type="button" onclick="fun1(this)" id="img1">IMAGE</button> </body> </html>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Se solucionó el problema, envío el "200" después de recibir la respuesta.

about 4 years ago · Juan Pablo Isaza Report
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!