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.

Thanks.

Jim
__________
Take back your shopping life at http://tinyurl.com/32rsxz

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


      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: