$get vs $find javascript ajax shortcut calls

by rbellantoni 1/26/2010 11:34:00 AM

The main difference between the $get and $find calls is the attribute the use to find the server control

$find('ServerSideID'), uses the actual server side ID to find the element

$get('generatedClientID'), get uses the DOM elementID or the clientID to find the element.

Both can use an option second parameter that takes a parent ID that the function will start the search in. So if you know the container for the element you can find it much faster otherwise it default to document as the parent.

Tags:

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  November 2017  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Recent comments

Tags

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017

Sign in