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

168
Views
La ventana emergente de JQuery no aparece, solo muestra DIV en la pantalla

Tengo un script jquery muy pequeño que aparece cuando hay un error en los datos ingresados. A veces funciona, pero la mayoría de las veces solo obtengo los errores en la pantalla. Un simple cuadro de alerta de javascript funciona bien.

Estoy usando una tabla contentEditable que usa JQuery y funciona bien. JQuery está por encima de mi nivel de pago, así que no estoy seguro de qué hacer. He leído toneladas de artículos sobre esto hasta que me sangraron los ojos, pero no pude encontrar nada sobre este tema exacto.

Este es el código emergente: $error es algo así como - Ingrese su nombre....

 <link rel="stylesheet" href="//code.jquery.com/ui/1.13.1/themes/base/jquery-ui.css"> <script src="https://code.jquery.com/jquery-3.6.0.js"></script> <script src="https://code.jquery.com/ui/1.13.1/jquery-ui.js"></script> <script> $( function() { $( "#dialog" ).dialog(); } ); </script> <div id="dialog" title="Please correct the following errors!"> <p><?php echo $error; ?></p> </div>

Este es el script JQuery en línea que funciona bien.

 $("#btnSaveAction").on("click",function(){ params = "" $("td[contentEditable='true']").each(function(){ if($(this).text() != "") { if(params != "") { params += "&"; } params += $(this).data('id')+"="+$(this).text(); } }); if(params!="") { $.ajax({ url: "insert-row.php", type: "POST", data:params, success: function(response){ $("#ajax-response").append(response); $("td[contentEditable='true']").text(""); } }); }

});

No estoy seguro de qué otra información puedo agregar, házmelo saber. Esto no está en línea.

Gracias

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