Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VBS combo box

Posted on 1998-09-02
6
Medium Priority
?
253 Views
Last Modified: 2006-11-17
I want a box where you can choose from a list or give an
unlisted awnser. All in one and the same box on the server
using ASP
0
Comment
Question by:jeroen56
  • 3
  • 2
6 Comments
 

Author Comment

by:jeroen56
ID: 1837306
Adjusted points to 10
0
 
LVL 4

Expert Comment

by:binkzz
ID: 1837307
You can't, simply enough.
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1837308
You can create an ActiveX Control, but that would only work in IE unless you have the EnCompass plugin for NS...

Or, you could do something like this...

When the user select "OTHER" from a drop down, you prompt or uncover another box that will allow them to enter a new item... Then add it to the drop-down box and select it....

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Accepted Solution

by:
MasseyM earned 30 total points
ID: 1837309
See comment below.
0
 

Author Comment

by:jeroen56
ID: 1837310
Thanks MasseyM,
that was the way I am already trying.
Point is, as I'm just starting out with VB-script I'm not as yet very competent in
writing 'complex' code. If you could supply me with the code to enable me to do this
I'ld be very greatful. I'ld like to point out that the site will be server-driven so VBS will
run on the server and the client will get good old plain HTML because ASP will
translate he code to HTML. If you're interested I'll keep you posted how the site is
coming along.
Greetings
0
 

Author Comment

by:jeroen56
ID: 1837311
I tried the following, doesn't do the trick:

<HTML>
<HEAD><TITLE>Using a command button</TITLE></HEAD>

<SCRIPT LANGUAGE="VBSCRIPT">
<!--
  Dim taal
  Sub Button2_onClick
    taal = Form2.Select1.value
    Document.Write taal
  End Sub

  Sub Button1_onClick
    If (Form1.Select1.value = "Andere taal") Then
    Document.Write "<FORM NAME='Form2'>Geef de niet op de lijst aangegeven taal op a.u.b.: <BR> "
    Document.Write "<BR><INPUT NAME='Select1' "
    Document.Write "VALUE='???' "
    Document.Write "TYPE=TEXT SIZE=50 MAXLENGTH=50> "
    Document.Write "</FORM> "
    Document.Write "<P><INPUT TYPE=BUTTON NAME='Button2' VALUE='Ga door'> "
    else
    taal = Form1.Select1.value
    End If
    Document.Write taal
  End Sub
 
-->
</SCRIPT>

<BODY BGCOLOR="#FFFFFF">

<FORM NAME="Form1">Selecteer a.u.b. een taal die u beheerst:
  <BR>
  <SELECT NAME="Select1" SIZE=10>
    <OPTION VALUE="Nedelands" SELECTED>Nederlands
    <OPTION VALUE="Engels">Engels
    <OPTION VALUE="Frans">Frans
    <OPTION VALUE="Duits">Duits
    <OPTION VALUE="Andere taal">Andere taal
  </SELECT>
  <P><INPUT TYPE=BUTTON NAME="Button1" VALUE="Ga door">
</FORM>  
</BODY>
</HTML>

If you to 'andere taal' and you want to submit in the generated HTML-page
nothing seems to happen after you click Button2
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question