« Ext quick tip... Ext.get and element | Main| Ext quick tip .. Date fields »

Ext quick tip .. Ext.query

Category
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 


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

Gravatar Image1 - Gives basic idea about Ext.query
Thanks.

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Welcome ..

View Scott Cochrane's profile on LinkedIn

My IdeaJams

tag cloud

MiscLinks

Googles

  • No Search Referers

OpenNTF

Poweredby

Domino BlogSphere
Version 3.0.1 Beta 9