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

189
Visualizações
Cannot resolve div ID inside JS using Vaadin

New WEB person here. Been doing JAVA for 20 years, and this is 1st time in the web pool. Anyway, I am using Vaadin and like it very much. I am using the subwindow component (user contrib) to give me a workspace in the browser where I am opening up other windows. In one of these windows, I am trying to attach a javascript component. I have already verified the component runs in a plain page, but when I try to attach in the window in the workspace, it cannot find the Div-ID. I have tried many, many versions. Even executing the script AFTER the window is displayed using a simple button. If I use the dev tools in Chrome, I can dig down and find the window/Div space and I see the ID is correctly set. If there something I must do in JS to see an ID that is nested??

In the JS I am just using: document.getElementById(myid)... ect...

Thanks!

Thank you for all that responded. I ended up passing the Div element into the javascript when it was started. Worked like a charm. Now to make resize work..

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