Solved

VBS combo box

Posted on 1998-09-02
6
244 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now