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

244
Vistas
How to call function from script with type=module from outside?

const dbref=ref(db);
    get(child(dbref,"TheStudents")).then((snapshot)=>{
        snapshot.forEach((doc)=>{
          $("#languages").append('<a href="#'+doc.val().Number+'" class="filterDiv '+doc.val().Section+' show" id="'+doc.val().Title+'">' +doc.val().Title+ '</a>'+'<div id="'+doc.val().Number+'" class="modal-window"><div><a href="#" title="Close" class="modal-close">Close</a><h1 id="title">'+doc.val().Title+'</h1><h2 id="author">'+doc.val().Author+'</h2><h3 id="pages">'+doc.val().Pages+'</h3><h3 id="roll">'+doc.val().Number+'</h3> <h3 id="shelf">'+doc.val().shelf+'</h3> <h3 id="borrower">'+doc.val().borrower+'</h3><div id="description">'+doc.val().Description+'</div><br><button id="butt" onclick="borrow(\''+ currentUser.borrowed+'\',\''+ doc.val().borrower+'\',\''+ currentUser.username+'\',\''+ currentUser.fullname+'\',\''+ doc.val().Number+'\')">Borrow</button></div></div>');});
    });

I am a beginner and getting hands ready on web developing. The thing is, I am working with firebase database and i need a function declared inside the outside the script ,and also it should be onclick function. Plz help me with this.

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