VBscript to write javascript?

Results 1 to 3 of 3

Thread: VBscript to write javascript?

  1. #1
    Reginald Grumby Guest

    Default VBscript to write javascript?

    I have javascript hierarchical menu, and SQL Server 7.0 database I want to pull records from to dynamically fill the menu arrays.<BR><BR>I am at loss as how to accomplish. <BR><BR>Thank You!

  2. #2
    Join Date
    Dec 1969

    Default RE: VBscript to write javascript?

    Ok say you need to fill an array of manu items just do<BR><BR>&#060;Script language-"javascript"&#062;<BR><BR>myArr = new Array();<BR><BR>&#060;%<BR>dim counter<BR>counter = 0<BR>do while not rs.eof<BR>response.write ("myArr[" & counter & "]=" & rs("fieldname") & ";" & vbCRLF)<BR>counter = counter +1 <BR>loop<BR>%&#062;<BR>&#060;/script&#062;<BR><BR>can expand on example to do pretty much anything. BTW which menu are you using, i&#039;m using BRATTA&#039;s coolmenus at home so if you need some specific code...<BR>

  3. #3
    Reginald Grumby Guest

    Default RE: VBscript to write javascript?

    Thank You!<BR><BR>I am using HierMenu (the newest version) from Webreference.com.<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