Solved

VBS combo box

Posted on 1998-09-02
6
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Anyone familiar with PhotoSwipe? 3 42
Read text on Table 7 48
Search Box CSS Question 16 47
Sticking text to shapes in Raphael.js 6 41
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
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…

734 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