Re: JavaScript Statement Question

  • From: "Jim" <jhomme1028@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sun, 21 Oct 2007 10:40:50 -0400

Hi Richard,
I think it should be brackets rather than braces. Brackets contain indexes to 
array items.


Take back your shopping life at

  ----- Original Message ----- 
  From: Richard Thomas 
  To: programmingblind@xxxxxxxxxxxxx 
  Sent: Sunday, October 21, 2007 7:55 AM
  Subject: JavaScript Statement Question

  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 
  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: