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

243
Views
Cómo evitar que ajax confirme el contenido exitoso que ya está dentro de un div

Cómo evitar que ajax confirme el contenido exitoso que ya existe en este caso en $('.Mydiv').Append(data);

 $(document).ready(function (ajaxCall) { var offset = 0; var limit = offset + 4; var cats_in_home = '<?php echo $myCat ?>'; var request_in_progress = false; $.ajax({ type: 'GET', url: 'getActivity.php', data: { 'offset': offset, 'limit': limit, 'cats_in_home': cats_in_home }, success: function (data) { $('.get_communication_with_div_class').html(data); } }); $('.MySeconddiv').onclick(function () { if (request_in_progress) { return; } request_in_progress = true; $.ajax({ type: 'GET', url: 'getActivity.php', data: { 'offset': offset += 6, 'limit': limit, 'cats_in_home': cats_in_home }, success: function (data) { $('.Mydiv').append(data); request_in_progress = false; } }); }); });

el problema es que cuando hago clic en la etiqueta MySeconddiv acepta duplicados, por favor ayuda no puedo encontrar la manera de encontrar una solución no puedo encontrar la manera de encontrar una solución

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!