Solved

VBS combo box

Posted on 1998-09-02
6
248 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 10 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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Open dialog with server side controls in it 3 46
Javascript 2 37
CSS Style Effect 2 18
Add a little space on either side of a table. 12 25
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

679 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