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

188
Vistas
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 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