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

292
Vistas
ExtJS throwing Invalid domNode reference or an id of an existing domNode: null when trying to bind one element to the config of another

For this code with the bind part not commented I get the error message which I post below the code.

<!DOCTYPE html>
 <html>
 <head>
 <script type="text/javascript" charset="UTF-8" src="./ext-all-debug.js"></script>
 <script type="text/javascript">
   var resultsPanel = Ext.create('Ext.panel.Panel', {
      title: 'Results',
      width: 600,
      height: 400,
      border: true,
      layout: {
          type: 'vbox',       // Arrange child items vertically
          align: 'stretch',    // Each takes up full width
          padding: 5
      },
      items: [{               // Results grid specified as a config object with an xtype of 'grid'
          xtype: 'button',
          text: 'button1',
          pressed: false,
          reference: 'button1',
          listeners : {
              click: { fn: function(){ alert("heheh");}}
          }
      },
      {
          xtype: 'button',
          text: 'button2',
          bind: {
              hidden: '{!button1.pressed}',
          }
      }
    ]
});
Ext.onReady(function () {
    resultsPanel.render(Ext.getBody());
   }, this, {delay: 1000});
 </script>
 </head>
 <body>
 </body>
</html>

following error message:

[E] Ext.dom.Element.constructor(): Invalid domNode reference or an id of an existing domNode: null ext-all-debug.js:10375:31
extPanel.html:34

When I remove the bind part from the code then everything works fine.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

In button1 you must add:

enableToggle: true,

pressed is only available for toggle buttons.

about 4 years ago · Juan Pablo Isaza Denunciar
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