Select One Of The List Boxes

I have two list boxes . User can select multiple values from the lists. Is there a way I can force that the user can select from only one of the list boxes? Can I associate the radio button with the list so that as soon as user selects the radio button the other list box turns grey(not letting the user to select anything from that list).?

View Replies


ADVERTISEMENT

2 List-boxes With Add

I would like to create a page with VBscript and ASP which will contain two list-boxes one in the left side and the other in the right side with two buttons namely "Add>>" and "<<Remove" so that if the user selects a value listed in the left side list-box and presses "Add>>" then that selected value should go inside the right side list-box.

Similarly if the user selects a value listed in the right side list-box and after clicking "<<Remove" then that selected value should go back to the left side list-box.
provide me the code?

View Replies View Related

List Boxes

I have two forms on one page. Form A only has a list box, lbox1, in it that is pulling its values via a stored procedure. Form B has a bunch of other stuff on it. What I want to do is hide Form B until a value is selected in lbox1. How do I accomplish this?

View Replies View Related

Select Boxes

Does anyone know if there is a way to select an item in a select box by
typing the beginning of the word and it finds it in the list?
As an example:
Say I want to go to the item named "M1234" in the list.
When I type M it goes to the first "M" item.
When I type 1 it goes to the first "1" item.
Is there a way to make it go to the first "M1" item instead of jumping back
to the "1" item?
Is it even possible to do this in classic ASP?

View Replies View Related

Several Select Boxes

I have 4 tables in my db which represent an county split up:
1 County split into 3 Divisions split into 2 Districts split into 10 Section
I have a query which pulls all the tables together to show every Section, its district, division, and county. Obviously, each Section only appears once each District 20 times and so on.I want to have 4 select boxes on my page which represent the break down:

county > division > district > Section

This is to enable a user, from any page, to filter the content of that page by whatever breakdown they wish.The question is how best to populate the 4 select boxes (well 3, county only has one option!)? I could have 4 queries on my page (4 hits to the db!), have one query and filter for each select box etc

View Replies View Related

Dynamic List Boxes

I've tried doing this tutorial on Macromedia's site, but can't get it to work.

http://www.macromedia.com/cfusion/kn...fm?id=tn_19117

I'm using VBscript server side script.

View Replies View Related

Dependent List Boxes

i am trying to link list boxes for a mini intranet. I have created a booking database for our staff to add bookings into for a business and it is all based around dates etc. I want people to be able to select the year in the first box and then in the next list select the month and then the date.

Can you give me a sample code on how to link the lists so that they are dependent? i can get single drop down lists just cant link them.

View Replies View Related

Select Boxes And Asp JMail

The good news is that I have a code in place that allows all form data to be submited to me, everything displays except the select boxes data. I have tried to search for this and know that it must be do able as it is used on big company sites. Code:

View Replies View Related

Two Select Input Boxes

I have a Stored Procedure with a Where clause for a date range, I would like to know is it possible to add onto my Classic ASP two select input boxes for filtering my date column?

For instance filtering January 15, 2008 thru February 14, 2008. If so would you be able to show me what that might look like?My where clause starts on 01-01-2005 and end on a future date, for example 12-01-2040

View Replies View Related

Getting 2 Selection List Boxes Working Together

Here is my situation, I have an ASP page with 2 list boxes. The first list box displays people that are available to be selected. The other list box shows the people who have been selected. This makes it easy to see who has been selected and who has not been selected since if you are in one list box you will not be in the other.

I know how to write the SQL to get the data for each list box but my problem is getting this to work without having to reload the whole page (I thought I could just re-run each list boxes' SQL and display the results instead of having to load the page again).

Write now I was thinking each list box would have an OnClick or OnChange JavaScript event. I would then have 1 table with all People in it and a second table of people who were selected. When the user clicked on the list box of available people (not selected) I need to run an ASP insert script and then requery both list boxes to pick up the change. In the case a user was removed from the selected list box, I need to run a Delete ASP script.

My problem is that I can do this if I reload the page every time a person is selected from a list but there has to be a way this can be done without reloading the page. Do you have any ideas or suggestions?

View Replies View Related

Populating Three List Boxes From The Database

I need to have three list boxes automatically populating each other, (ie
when region is selected from the first listbox, it will populate
automatically the second one which is the TOWNS and when the town is
selected is should populate the third one AREA) all data is in the database
in one table.

View Replies View Related

Dynamically Linked List Boxes

I want to link 2 list boxes on the same page without reloading it. The list boxes are dynamic and when one selects an item in the first one, the second one get's populated accordingly. So far I've been stuck with Javascript Object Expected Error and I cant find a way to make it work. Code:

View Replies View Related

2 List-boxes With Add & Remove Button

I would like to create a page with VBscript and ASP which will contain
two list-boxes one in the left side and the other in the right side
with two buttons namely "Add>>" and "<<Remove" so that if the user
selects a value listed in the left side list-box and presses "Add>>"
then that selected value should go inside the right side list-box.


Similarly if the user selects a value listed in the right side
list-box and after clicking "<<Remove" then that selected value should
go back to the left side list-box.

Can anyone provide me the code?

View Replies View Related

Multiple List Boxes Dependent

I am working on a survey form. I need to create multiple-multiple dependent istboxes...I need to allow the user to make multiple selection from a categoryListbox and as the user select from categoryListbox must display and add available subcategories into the subCategoryListbox and allow to select multiple subcategoris.

View Replies View Related

Moving Data Between Select Boxes

I have used ASP code to load data into two select boxes. The code below is used to move the selected data back and forth between the boxes.

I am having problems retreving the data from the boxes after the user has moved any of the data:

If the data has been moved by the below code; when i try and load the data back into the database i cannot retrieve the data using:

request.form("Clients1").item(1) and it will not show up using
request.form("Clients1").count

If i dont move the data i can retrieve it using: Code:

View Replies View Related

Create SQL String With Multiple Select Boxes

I am working with an ASP app that creates reports based on data in an SQL Server 200 database. There is a web form with select boxes for the user to select their criteria, and based on that an SQL SELECT statement is generated.

One of the requirements is that some fields need to be multiple selections. The output of these fields are in CSV format (One, Two, Three). These values are all alphanumeric, NOT just numeric....

View Replies View Related

Select List

I have a select list which get populated from com but i option value ALL is hard coded on the pageWhen any value is selcted from the list box and form is submitted pages refreshes with the value as selected in the drop down but if All is selected the page ref but All doesnot get selected.

<LABEL for="MyList"></LABEL>

<SELECT id="MyList" name="MyList">

<%For icount=0 To intmyCount%>
<OPTION
<%if Trim(arrmyType(icount,0)) =strmytype Then%>
SELECTED
<%end if%>
VALUE="<%=Trim(arrmyType(icount,0))%>"><%=Trim(arrmyType(intCtr,1))%>
<%Next%>

View Replies View Related

List Select Transfer

What i would like to be able to do is have two listboxes side by side, one will have all of the main categories and the second will have all of the sub categories in it.
I populate the first list by using this code:

<option value= "<% = rs("cat_id") %>"><% = rs("cat_name") %></option>

Now what i would like to do is when the user double clicks say the second item on the list, the listbox next to it will display all of the items that are under the main category they just double clicked on

View Replies View Related

Adding From SELECT List

I have created a webpage with a form written in javascript for a user to enter information. Part of this form requires the user to type in information and then add it to a list, which is of the type <SELECT>. When the user submits the form, I want all the entries in the SELECT list to be entered into the database. If I use the command Request.Form("name"), where "name" is the name of the SELECT field, only the selected entry is retreived. I need to retreive all entries in the list. Does anyone know how I can do this?

View Replies View Related

Select List Box From Array

I have a string that was populated from a listbox. Now I want to bring up the record again for edit and want the listbox to have those records selected ONLY. I am close I think. Currently, it selects all records.

<%
HearingIssues = RS3(0)
HI = Split(HearingIssues, ",", -1, 1)

For i = 0 to ubound(HI,1)
sString = Instr(HearingIssues,HI(I))
if sString = 0 then
%>
<option value="<%= HI(I)%>"><%=HI(I) %></option>
<% else %>
<option value="<%= HI(I)%>" selected><%= HI(I) %></option>
<% end if
next

View Replies View Related

Select (dropdown) List

I have an old application ( pre-VB5) that I need to add a select/option list to. This is an edit program so the values for the form will be retrieved from a database. How do I set the value of the dropdown with the value from the database. The value in the database is either new, trial, maint., employee, beta, or null. I need to set the dropdrown to one of these values. An example of the select;

<td>
<select name="ordReason">
<option></option>
<option value="New">New</option>
<option value="Maint.">Maint.</option>
<option value="Trial">Trial</option>
<option value="Employee">Employee</option>
<option value="Beta">Beta</option>
</select>
</td>

View Replies View Related

Font Of A Select List

I have the following list

<SELECT NAME="">
<OPTION VALUE="">Series C</OPTION>
<OPTION VALUE="">Series M</OPTION>
<OPTION VALUE="">Series F </OPTION>
<OPTION VALUE="">Screwjack</OPTION>
<OPTION VALUE="">Roloid Gear </OPTION>
</SELECT>

However i want to change the font size and typw within the list is there a way to style the font inside such a list?

View Replies View Related

SELECT List Re-ordered

I need a piece of ASP code which will output the values in a select box no matter what their order. This is for re-arranging items in the database.

I have a page which displays al relevant rows from the database in a select box with a javascript function to move the items up and down in the box.

However, I then need an ASP output of the order of the box. Currently, when i request.form("ord"), I get the values "1,12,36,37,[etc]" but only in the order they are in when the first page loads. It does not re-arrange the items if they have been re-arranged using the javascript function.

View Replies View Related

Multiple Select In Dropdown List Box

How to make multiple select in dropdown list box using asp and access.

View Replies View Related

How To Send Content Of A Select List To DB

I created 3 select lists :

One is a dropdown style that has options in it like : location,date,usage
Second one is a select list that I filled with value from a vbscript that get all groups on my domain.

Third one is a list that gets automatically generated when user select an option from the first one I also got 2 input button that allows the user to move item from list 2 to list 3.

Now here's the deal I want a way, maybe a button, that would circle around all the options in list3 and insert each of them in my DB. Code:

View Replies View Related

Complete An Access Table Through A Select List

I would like to know if it is possible to fill in an access table through a select list inside an APS 3 web page. If yes, how ?

View Replies View Related

Populate A Select List From A Comma Delimited Txt File

I would like to use ASP to populate a select list from a comma delimited txt file.....

View Replies View Related

Refresh Values In Select List Based OnChange Of A Dropdown Box

I am trying to learn and use good DHTML concepts and code (assuming they are needed). My current issue concerns how to handle this situation.

I have a Select List box which displays values based on what value is selected in a dropdown list. For example, my dropdown list contains a class name, and the Select list contains all of the students who are registered for that class.

So what I would like to occur, is when the user changes the class from the dropdown box, the Select List is re-created displaying the students who are enrolled in that class.

I thought I could do this without having to reload the page (with DHTML) but here is my problem. Code:

View Replies View Related

How Can I List All The Email Address From Hotmal Contact List?

How can i list out all the email address into my website from the hotmail caontact list? i am successful log in into the yahoo contact list by using serverxmlhttp and list out all the email address from the page source, but i could not access to hotmail by using the serverxmlhttp. Is any other methos can list out the email address from hotmail contact list?

View Replies View Related

Drop Down Boxes

I have a form that will add a device to a database. What I am having a problem with is that I have two drop down boxes. One is a building number and the other one is a room name. Because there are many room names that are the same in many of the buildings and some room names that are not in all of the buildings, I have created a table called buildings and another table called rooms.
I have a drop down menu that displays all the building numbers and what I want to be able to do is when I select the specific building number, another dropdown box appears showing all the room names for that specific building. I also what to be able to keep the information already on the form intact. As an example, a user puts in information on the form such as the machine name, username and then selected a building name, which would then show the rooms in that specific building, maintaining the information of the machine name and username on the form. There are seven items on the form, which the user must include prior to submission of the form.

View Replies View Related

Three Check Boxes

I am trying to create a database submition type interface which is dependant on the selection of three check boxes. The form contents will always be the same type of information;;; name address etc. The user must decide which db to write their details to.. So if check box one is selected then it writes to database a. If the other two are individually selected then the script will write the form details to another database b and c. If all three are selected then the script will write to all three databases a b and c .
Is it as simple as creating three connection strings and assigning them to variables

View Replies View Related

Input Boxes

I am in the process of writing a website which has an access database
and uses asp to access it. Part of the site is a search facility. I
have heard that it is possible for hackers to gain access to the
database by entering SQL in to the search box. First of all is this
possible? Secondly if it is possible, what sort of syntax should i be
checking for on the text entered in to the search field

View Replies View Related

Two Text Boxes

code:

If request("bMarketTypes") <> "" AND request("bMarketArea") <> "" Then
Response.Write "types and area<br />"
Elseif request("bMarketArea") <> "" Then
Response.Write "area<br />"
Elseif request("bMarketTypes") <> "" Then
Response.Write "types<br />"
End If

I have two text boxes,so the possible combination both are checked,OR one is checked and the other isn't, or vice versa.Why won't this code work then?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved