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

353
Visualizações
Unable to capture content of the scorm present inside the iframe using html2canvas

I am trying to capture the screenshot of the SCORM present inside the iframe but it is capturing content of the iframe, I am using html2canvas for that. All the files of SCORM are present on same server.
This is first slide/page of my scorm.
enter image description here
1) Firstly I have passed $('iframe') and var iframe = document.querySelector("iframe").contentWindow.document.body; to html2canvas but it is not working well.
Output of this is following Img
enter image description here

2) Then I passed e.target.parentNode to html2canvas so it capturing current element's parent.
Output this is following :
enter image description here

Here is my code :

html2canvas($('iframe'), {
    logging: true,
    onrendered: function(canvas){
        before_imgData = canvas.toDataURL('image/png');
        // console.log(before_imgData);
    }
});

But I want screenshot of all the screen how can I achieve that, any help would be appreciated.

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