PDA

Click to See Complete Forum and Search --> : Combining SELECT and Functions in VB script - help !


Mark Stewart
Jun 10th, 2001, 05:24 PM
It took me already 3 hours and despite I asked some programmers around, I still do not know how to handle it.
I try to combine two different pages, one of them with defined Function, and the second one with SELECT statement. Each of them works perfectly, but after combination I receive still the same error message.
Please check the first file (which works) at http://www.eurobasket.com/file1.asp
second file (which works) at http://www.eurobasket.com/file2.htm
and a third one (does not work) at http://www.eurobasket.com/file3.asp
I would REALLY appreciate any suggestion how to solve it.

monte96
Jun 11th, 2001, 12:34 AM
1) Don't use Msgbox, use window.alert

2) The code on page 2 is Javascript, the code on page 1 is VBScript. Your gonna have to pick one or the other. (Although in theory you could use both, you shouldn't)

3) If you decide that you must use both scripting languages on the same page, be specific. replace this:

<SELECT name=Europe onchange="location.href=options[selectedIndex].value; return true;" size=1 style="font-family: Arial">
with this:
<SELECT name=Europe onchange="Javascript: location.href=options[selectedIndex].value; return true;" size=1 style="font-family: Arial">

(don't put the space between java and script- that is a forum bug)