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

250
Vistas
How I pass an array of image from js file to HTML?

In this function I have in input an array of images(link of the img on google) and I want to show the image in my HTML code, in var fullLink I have the link to HTML page. Any suggestions?

My JS function:

function showImageContributors(data) {
    var url = "chrome-extension://paiocjmlmleigfefjijbaglphlbgfcdo/src/browser_action/contribuenti.html";
    var nameRepo = window.location.hash;
    var fullLink = url+nameRepo;
    
    document.getElementById("imageCollaborators").appendChild(() => data.map((image) => <img src='${data}' />));
  }

My HTML where the images have to be shown:

<div class="col-lg-4 ms-auto">
  <div id="imageCollaborators" class="imageCollaborators"><img id="image" src="" class="image" /></div>
</div>
about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

You can do something like

function showImageContributors(contributors) {
  var data = [];
  var link = "chrome-extension://paiocjmlmleigfefjijbaglphlbgfcdo/src/browser_action/contribuenti.html/";
  contributors.forEach(c => {
    data.push(c.image);

    $.getJSON(link + $.param(data), function(res) {});
  });

  pimage.remove();
  document.getElementById("imageCollaborators").appendChild(() => contributors.map((contributor) => <img src=`${contributor.image}` />);

}
about 4 years ago · Santiago Gelvez Denunciar
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