Click to See Complete Forum and Search --> : [RESOLVED] meaning of $find
jasonli
October 26th, 2006, 05:10 PM
I'm using ASP.NET AJAX. I got a snippet of javascript from internet websites, and I found a statment -- $find("Label1").innerText = 'OK';
I've never seen that before. Anyone can tell me what the meaning is?
PeejAvery
October 26th, 2006, 05:29 PM
Where did you find this? Are you sure that it is, in fact, proper coding?
I have never seen anything like it either.
bigBA
October 27th, 2006, 03:57 AM
lol
this sounds, like they use some kind of javascript library which defines a $find method.
wild guess: prototype
and i think, this line of code just assigns OK to the innerText of the DOM node with the id "Label1"
jasonli
October 27th, 2006, 12:00 PM
I got it. When developing ASP.NET AJAX Enabled Website, you will find that in script.
The statement means that to find Sys.Application object "Label1" and assign "OK" to it.
http://blogs.msdn.com/sburke/archive/2006/10/20/atlas-control-toolkit-ajax-control-toolkit-migration-guide.aspx
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.