In Microsoft Ajax, what exactly does $ find do?

I'm so confused that there really is $ find from Microsoft Ajax. Does it just return the control in the same way as the $ operator from jquery or javascript of its own getElementById?

If i do

$find('someControlId') 

I will get the same object from jquery

 $('#someControlId') 

or javascript

 getElementById('someControlId') 

The reason I'm asking is because when I use $ find on the ClientId of some Telerik controls, the returned object seems to be of type.

So, is this just another example of how the wheel is reinvented or is it actually doing something else?

+4
source share
1 answer

I was able to find the following information through a quick Google search:

Why should you choose $ find instead of $ get? The $ get function is short for document.getElementById. Thus, it can only look for DOM elements. The $ find function is for Sys.Application.findComponent and applies to any component of the Microsoft AJAX library that was programmatically created.

From MSDN: http://msdn.microsoft.com/en-us/magazine/cc135984.aspx

For further reading, check out the Sys.Applicationl.findComponent doco .

+7
source

All Articles