Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

364
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda