JavaScript Statement Question

  • From: "Richard Thomas" <rthomas@xxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sun, 21 Oct 2007 07:55:08 -0400

    Hi:
In this statement what is the '{0}'?
"   var elem = document.getElementById('{0}_SelectedNode');" I know the single 
parameter inside the GetElementById is the Id Tagg value of the control to look 
up but the tag he looks up has an id of something like Panel1_SelectedNode that 
it looks like he may be replacing with the {0} in the GetElementById Statement.
haven't found anything, actually too much, on the statement but nothing using 
'{0}'.
What is it called, index or something and what does it mean?  I'll dig around 
more if I can find something to google on that points to this particular syntax.
My guess is it has to do with a Document Control relative Reference or 
something but I just can't find anything like it googling so far.
Thanks:Rick Farmington Mich. USA


Other related posts: