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

251
Visualizações
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 à 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