Dynamic naming of components

Results 1 to 2 of 2

Thread: Dynamic naming of components

  1. #1
    Join Date
    Dec 1969

    Default Dynamic naming of components

    If I&#039m creating a set of input boxes using a while loop (vbscript), and I dynamically create a name for each one (name="&#060;%="D" & nCounter%&#062;"). How can I access the value of each one from a client side vb script?<BR>I need to be able to say somethin like:<BR>msgbox document.form1.D" & ni & ".Value"<BR>But obviously this does not work!<BR>Thanks in advance

  2. #2
    Join Date
    Dec 1969

    Default RE: Dynamic naming of components

    Client side vb-script doesn&#039t exist.<BR><BR>Use javascript:<BR> alert(document.form.d1.value)<BR> alert(document.form.d2.value)<BR> alert(document.form.d3.value)<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts