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

117
Visualizações
iFrame embedding: Scrollbar handling

I am running a platform that provides simple forms and simple outputs for a bunch of clients who embed this features in there webpages by iframe. As these forms and outputs tend to grow over common screen heights, the idea is to let the main scrollbar of the embedding webpage also control the scrollbar of the embedded iframe, i.e. if the scrollbar reaches the iframe, the embedding page stops to scroll, but the iframe is scrolled till it reaches its bottom. Afterwards, the embedding page will be continued to be scrolled. Embedding pages and my platform are on different domains.

It is possible for me to include some (perferently vanilla) javascript besides the HTML code for iFrame.

My questions: 1.) Is there a framework to handle control of the scrollable elements? (I have seen such things on a newspaper website, but it isn't online anymore.) 2.) Am I running into some Cross-Domain same origin policy issues anyway?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You could try Element.scroll(). It scrolls to cords on your webpage, for example, if you wanted to observe the current scrolling cords and act on them.

about 4 years ago · Juan Pablo Isaza Relatório
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