Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

281
Views
ExtJS arroja una referencia de domNode no válida o una identificación de un domNode existente: nulo al intentar vincular un elemento a la configuración de otro

Para este código con la parte de vinculación no comentada, aparece el mensaje de error que publico debajo del código.

 <!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>

siguiente mensaje de error:

 [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

Cuando elimino la parte de enlace del código, todo funciona bien.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

En button1 debes agregar:

 enableToggle: true,

pressed solo está disponible para los botones de alternancia.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!