Results 1 to 2 of 2

Thread: VBScript within javascript

  1. #1
    Join Date
    Oct 2009

    VBScript within javascript

    I have a javascript function that spits out some vbscript variables, but am sure how to use the javascript loop in tandem with it.

    for example, alert('<%=games(1)%>'); displays the vbscript value of games(1). How can i have it display 1, 2, 3, etc through the loop?

    for (i=0; i<=4; i++) {

    alert('<%=games(" + i + ",3)%>'); doesn't work
    alert('<%=games(' + i + ',3)%>'); also doesn't work.

    is there a way to easily accomplish this?

  2. #2
    Join Date
    Jul 2008
    urbana, il
    you'll have to do the loop in vb, or spit out a javascript array, and loop through that.
    Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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