www.webdeveloper.com
Results 1 to 2 of 2

Thread: VBScript within javascript

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    3

    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
    Location
    urbana, il
    Posts
    2,787
    you'll have to do the loop in vb, or spit out a javascript array, and loop through that.

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



Recent Articles