Ext-JS Question:
Download Job Interview Questions and Answers PDF
Explain how to access Dom element using EXTJS?
Answer:
The Element API is fundamental to the entire Ext library.
Using traditional Javascript, selecting a DOM node by ID is done like this:
var myDiv = document.getElementById('myDiv');
Using Extjs:
Ext.onReady(function() {
var myDiv = Ext.get('myDiv');
});
Using traditional Javascript, selecting a DOM node by ID is done like this:
var myDiv = document.getElementById('myDiv');
Using Extjs:
Ext.onReady(function() {
var myDiv = Ext.get('myDiv');
});
Download Ext JS Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me do you have any advice for developers using Ext for the first time? | Tell me what is the purpose of Element Object in Extjs? |