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

451
Visualizações
Can't pinpoint error origin using Chrome Developer Tools + Apps Script (Javascript error)

I am trying to debug an error on my code, I am using Apps Script and I know my error is related to JavaScript. To be more exact, here:

agendaColaboradores.append('<input class="elementoFormularioMovCob" type="time" id="movCobHoraEntradaES' + colaboradorTrim + '" name="movCobHoraEntrada' + colaboradorTrim + '"' + 'onchange="teste()"' + '>\r');

every time I edit the input, the onchange trigger works as expect. I know this because everytime I change the input value I get this error message:

Uncaught SyntaxError: missing ) after argument list (at userCodeAppPanel:1:40922)

With is useless since I can't check what is the code content. If i click userCodeAppPanel:1:40922 it's just show me a blank script.

Nothing in this error seems to make sense:

<input class="elementoFormularioMovCob" type="time" id="movCobHoraEntradaESAlexsandroLuizAlbani" name="movCobHoraEntradaAlexsandroLuizAlbani" onchange="teste()">

This is the result of the .append. A regular input element with no errors, it should just trigger teste() but I keep getting this content.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

write debugger in the first line of taste function and then trigger it from frontend , it should stop execution in the first line of dev tools and from there you can step till the line you get error

about 4 years ago · Juan Pablo Isaza Relatório

0

Try it this way:

agendaColaboradores.append(`<input class="elementoFormularioMovCob" type="time" id="movCobHoraEntradaES${colaboradorTrim}" name="movCobHoraEntrada${colaboradorTrim}" onchange="teste();" />`);
about 4 years ago · Juan Pablo Isaza Relatório
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