Results 1 to 2 of 2

Thread: Combining SELECT and Functions in VB script - help !

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1

    Exclamation Combining SELECT and Functions in VB script - help !

    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.

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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)
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

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



Click Here to Expand Forum to Full Width