J
John Kotuby
Hi all,
I was just looking at some example code in the VS2008 help for VB. In a
JavaScript example I came across some syntax that I didn't recognize and
could not find information about on the usual JS sites I use as resources.
In a place where I expected to see "document.getElementById('elementId')",
instead the Microsoft example use the syntax "$get('elementid')".
So I tried it in some of my code and it seems to work fine.
Can somebody explain this short-hand syntax to me or at least point to a
resource where I can read about it? It sure beats the heck out of typing
document.getElementById.
I just want to make sure I won't run into any compatibility problems if I
start using that syntax regularly.
Thanks in advance...
I was just looking at some example code in the VS2008 help for VB. In a
JavaScript example I came across some syntax that I didn't recognize and
could not find information about on the usual JS sites I use as resources.
In a place where I expected to see "document.getElementById('elementId')",
instead the Microsoft example use the syntax "$get('elementid')".
So I tried it in some of my code and it seems to work fine.
Can somebody explain this short-hand syntax to me or at least point to a
resource where I can read about it? It sure beats the heck out of typing
document.getElementById.
I just want to make sure I won't run into any compatibility problems if I
start using that syntax regularly.
Thanks in advance...