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

130
Views
Recall same setInterval after clearInterval

I've an <iframe> which is changing its content dynamically and I want to access the elements of <iframe>

Somehow I got access to the elements inside <iframe> using $("#myIFrame").contents().find(".iframeElement").on("click", function(){...}

Now issue is I only got access to static elements of <iframe>, and for accessing dynamic elements I used setInterval which recall the above jquery function every second. That gives me multiple duplicate callbacks. So I tried clearInterval that stops it completely.

Then I also tried calling above setInterval and clearInterval (if previous already exists) inside another setInterval which is also giving me multiple duplicate callbacks! Due to orphan setIntervals

So is there a well-structured way to call same setInterval after clearInterval

Hope you're getting my point!

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!