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

94
Views
bucle de incremento basado en la carga de iframe

necesito obtener el ciclo de incremento basado en el máximo, por lo que si el incremento dentro de la carga del iframe alcanza el máximo, el incremento vuelve a 1 2 3 ... aquí está el código que he probado

 <script type="text/javascript"> var n = 1; //based on page access ex:1 var max = 8; //based on the array data ex:8 $('#iframe').on('load', function() { var i = n++; var l = ( (i-1) == max) ? 1 : i; var el = $('div[id^="detail_'+l+'"]') var k = el.attr('key') }); </script>

el problema es que cuando alcancé el máximo de 8 y volví con éxito a 1, la próxima carga irá a 10 y no volverá a repetir del 1 al 8. Sería bueno si ustedes tienen una sugerencia. 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!