Ext quick tip .. Ext.query
Category Ext
Bookmark :
Here is another example of where you can make easy use of the Ext framework and just scratch the surface ...
With Ext you can use Ext.get( element name/ dom element ) to retrieve an individual element. But what if you want to gather a group of html elements and operate across all of them.
This is where the Ext.query method comes in. Basically this runs a query against the HTML DOM document and finds all elements that match. For example the following would return an array of elements that have the class 'foo'.
Ext.query("*[class*=foo]")
You can find loads of other examples on the Ext website here.
Bookmark :
Here is another example of where you can make easy use of the Ext framework and just scratch the surface ...
With Ext you can use Ext.get( element name/ dom element ) to retrieve an individual element. But what if you want to gather a group of html elements and operate across all of them.
This is where the Ext.query method comes in. Basically this runs a query against the HTML DOM document and finds all elements that match. For example the following would return an array of elements that have the class 'foo'.
Ext.query("*[class*=foo]")
You can find loads of other examples on the Ext website here.
- 







Comments
Thanks.
Posted by Vishnudas At 06:14:35 On 24/12/2009 | - Website - |