Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

178
Visualizações
button inside a generated Sticky Nav doesn't open an iframe

I'm sorry if I didn't explain the problem in the title. Let see:

The actual project is a StickyNAV. This is generated from the main menu of the website and appears when scrolling. The StickyNAV code is added at the end of the BODY when scrolling.

The button inside the StickyNAV doesn't work, it doesn't open the iframe, like the button in the main menu does.

The javascript file that opens the iframe is on another server (external URL). This js file (I guess), selects from the DOM all the elements that have the class: wtrvl-checkout_button

This is an example of what I need.

My first solution was to clone the element, but I discovered that the events associated to an element cannot be cloned.

Clicking LOAD loads the iframe normally. But after cloning Box1 and clicking LOAD nothing happens.

Thank you very much to the people who can help me.

[1] https://codepen.io/percy-solis-lucero/pen/BamZNNZ
  
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda