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

136
Visualizações
How to position window.parent scrollbar to the selected element position

Hi Using iframe I'm calling my angular project inside the ColdFusion Project. Im displaying the table in angular when I'm selecting any TR I will open a div over the table. at that time I can able to scroll outer scroll which is in coldFusion side. my requirement is when I close the div I want to go back to the position of outer scroll to the position of TR where I clicked.

 positioningAccordian(id: any): void {

    setTimeout(() => {

      const element = document.getElementById(id);

      element ? window.parent.scrollTo(0, element.offsetTop) : null;

    });

  }

The parameter id is the id of TR. My requirement is to restore the position of parent scroll to its position where it was before opening a div.

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