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 Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Add Remove Button
The main idea goes like this: I have a textarea, on the right I have a listbox whose elements are loaded from an Oracle Database, I want to have an "Add" Button which when pushed will insert in the textarea the value selected on the listbox between "{ }" (ej, The {white} cat), you can add as many values as you wish and also manually edit the text, and a Submit button which open another ASP page that will check the sintax of the textarea and insert it on the Database. So far I already have the part which checks the sintax and inserts it on the db, and the listbox with the elements you can insert on the textarea, but my boss really wants the "Add-Remove" feature and I need to finish this for Tuesday
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?
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).?
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?
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.
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:
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.
How To Remove Blanks From A List Menu??
One of my tables is used for two purposes so there are blanks in the column I'm filtering. I tried using an IF statement but it still put the blanks in the list menu. Any idea how to remove the blank items? Code:
Remove Duplicates From List Or Array
I am returning a list form a db: this could be 1,2,3,4,12,67,1,2,34 so basically I am looking at how to remove the duplicates before doing another select. I saw a thread here with a funciton to do this bu it does not seem to work.
Shop Cart List Page With Several Remove Buttons, No Javascript
how would I go doing it without javascript and using 'POST'? Having a page with a variable list of items in a shopcart, each item with its own 'remove' button. How could I do this without a javascript and using POST as the form type? (so having <a href="page.htm?remove=2> is not possible)
Radio Button List Question
I have a radio button list value = 1, text = "Option 1" value = 2, text = "Option 2" It might soung stupid but how do I get the first item to display if I enter the number 1 and the second item if I enter the number 2.
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?
Need To Remove DAY Name
I found a simple date script, which is this: <% var_date=date() 'get the current date var_date=FormatDateTime(var_date,1) Response.Write(var_date) Wednesday, September 29, 2004 How can I get this to not display the day of the week, I only want - September 29, 2004
Remove DAY Name
I found a simple date script, which is this: <% var_date=date() 'get the current date var_date=FormatDateTime(var_date,1) Response.Write(var_date) %> Wednesday, September 29, 2004 How can I get this to not display the day of the week, I only want - September 29, 2004.
Remove Dot
i have a variable which holds a value like this stramount=Trim(Request.form("txtamount")) response.write stramount the output sometimes is 50.00 or 50 or 50. if it is 50. i want to remove the (dot) at the end. can someone tell me how to use the instr function to see if there is a dot at end and if it is there then remove it.
Remove The Gap
i have problem in removing the gap between two images, pls see the attached image. coz my item name is quite long, i dun wnat it display in horizontal, i want it display as vertical. so i create the images for the character and use ascii to recognized it. my code is as below: <td align="left" class="BorderLeft" width="1%"> <%dim word, pic, word1 word = "AAAAABABABBA" pic = "" for i = 0 to len(word)-1 word1 = cstr(right(left(word,len(word)-i),1)) pic = asc(word1) & ".gif"%> <img src="../images/<%=pic%>" border=1 vspace=0 hspace=0> <%next%> </td>
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.
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
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
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?
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
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?
ASP Text Boxes
I have a text box that i need to check for illegal characters. I only want to have 2 numbers allowed in them, with no letters or ( . , ' ; / ? [ etc. how could i read the input to a string and check each character entered one by one?
Dropdown Boxes
When I write code to populate a dropdown box with all fields from a column in a table, it populates all but the first record. And then automatically sets this missing record as the record to be sent, no matter which record I select. Has anyone seen this issue before.
Message Boxes
Is there anyway to do a message box in asp with vbscript to make an alert box appear like in javascript.
Information Boxes
how the information boxes pop up when you mouse over a link? For instance in this forum, when you mouse over the Title of the thread, an information box pops up with the entire message. I assume that is Javascript, but does anyone know where I can find more information on this?
Combo Boxes
I am setting up an ASP page using a combo box ... Request: ... The user select a date from the pull down list and on selection of that date another box or window will populate with the corresponding data from that same record in the database.. I guess I am looking for an "On Selection event" type feature Something that will cause an event to happen based on the selection from the combo box and not have the user to press enter to get the corresponding results.
Check Boxes
Say i have a table with check boxes for every row. I would like to have a feature where when the user clicks the checkbox the column background color changes like the one in hotmail and yahoo mail.
How To Remove Cookie?
How can I remove a cookie from the client in ASP? I'm not talking about setting the value to a blank string and I've tried this: [vbs] Response.Cookies("mycookie").Expires = Now() [/vbs] and [vbs] Response.Cookies("mycookie").Expires = Date() - 100 [/vbs] Neither of which work. Is there any way to completley remove the cookie?
Remove Header
can anyone temme the script or style sheet to remove the hearder and footer url address of the web page when printing the pag
How To Remove Duplicates
How to write asp code to remove duplicates in an array. For Eg: A()=(1,5,10,15,10,20,5) After removal of duplicates it should be A()=(1,5,10,15,20).
Remove Underline
I have image icons that are clickable. I want to remove the hyperlink from around the image. I tried the STYLE="TEXT-DECORATION: NONE" tag but thats not working. How should I remove the underline from the hypelink. Code: strImage = "<A target=""_blank"" href=""document.asp?job=" strImage = strImage & jobid & "&doc=" & filename & """ STYLE="TEXT-DECORATION:NONE">" strImage = strImage & "<IMG SRC='" & GenerateIcon(rs("filename")) & "'/></A>"
Remove Left Of ,
Would search for this but forgot what its called? I wanna remove everything from the left of the camma in a variable: 43,7-3-05 to 7-3-05
Remove IMG Tag Toggle
I am wanting to create a large dynamic web site with an accessible Text Only version.Instead of creating additional pages for the text only version, is it possible to implement some regular expressions, which remove all the IMG tags from page. I have found a useful tool at http://tantek.com/favelets/ which removes the CSS from the page but I also need to remove the images.Are regular expressions the best means of doing this?
Remove Items
Response.Write "<TD>" & "<a href= objRS.Delete>Remove</a>" & "</TD></TR>" I have a basket which people add stuff to that they want to buy. i want a code that allows them to delete the item too. how the basket works is. thy choose a item from stock page and then it adds to a basket table.
Remove Duplicates
I have declared a multidimensional array as follows. dim parray(100,5). Now this array contains some duplicate values. So how to remove duplicate values in this multidimensional array.
Drop Down Boxes And Sessions
I have a form, all the drop down boxes are populated from fields in tables in a database ive made. This part is working fine. The fields are for IT components and each one has a price in a seperate field. Im trying to store the price to a session when the user selects. When the page loads and the drop down lists are populated I am loading the price values in also but not displaying them. So far my code for it is this: Code:
Question On Drop Down Boxes
I am creating a search form on my website. The user will be able to search via zip code, county or state. If the user selects the state option from the drop down box, I would like another dropdown box to appear on the page with all the states listed. I think you have to use javascript but i'm not sure.
Multiple Check Boxes
I have this form which the user will fill online.Now the form has 3 checkboxes giving a user the option of selecting which person/persons out of the three listed should get the form email when he hits submits. So the form has three checkboxes and each checkbox will have a name of a person next to it.The user just needs to check it (one name or all names out of three) and after he hits enters a mail shud go to the respective selected people.I was thinking of using CDONTS to send mail..but i cant figure out how i shud do it with this mutliple checkbox scenrio?
Getting Text From Option Boxes
ok i need to get the text from an option box? i know you can do it with java script but it would make my life a lot easier if you can get it using asp. don't know if there is a method out there or what. any ideas?
Forms And Text Boxes
I have a form and some of the text boxes are being filled in from a search from another form. Go to this link to see the code for the form page: Code: I want the user to see the info in the first four text boxes that are populated by the database and I want this info. to be submitted with this form, but I don't want them to be able to change or edit the info. in these populated boxes. Just want them to fill out the rest of the unpopulated boxes. This form submits to an asp page that processes the form data and sends it to an email. how can i do this?
Populating Drop Down Boxes
im looking at populating a drop down box with database values when a user selects a value from another drop down box.I have a drop down list that populates from database values, it is a list of manufactures. When a user selects a manufacture i want it to display all the systems for that manufacture which will be stored in a table. I understand that because asp is server side that once an option is selected the page would have to submit and then load the values in.
Dynamic Text Boxes
i have been asked to create text boxes dynamically on a web site, the user can click a button and a new set of text boxes will appear. The user can add as many boxes as many times as he wants, I have created the text boxes already using the following code. function inserttextboxs() { var tab = document.getElementById("Difference") var tr = tab.insertRow() var tc = tr.insertCell("") tc.innerHTML = '< input type=text id=text1 name=text1>'; } The problem is I don't if this how I should be doing it when I submit the form all the elements have the same id, I need to create something with unique id's so I can retrieve the different values
Dynamic Text Boxes
how do get dynamic content to a drop down text box from a db. For example: There are two drop down boxes. First one continents Second one countries. The user selects content from the first drop down box and using the onChange javascript function the data on the second drop down should show the countries related with that content.
Populating Drop Down Boxes
I am trying to populate the drop down boxes. There should be two one for the begin date and the other for the end date. here is my code. The problem is that it wont create the drop downs. Code:
Variables From Drop Down Boxes
I am now on the write track for detecting and acting on a variables value. Could someone please have a look over it and see where it is falling out. The help really would be appreciated. The reason for vTime = vTimex + VTimex1 etc... is because once I get the first part working I will then continue to add up the value until it reaches four. I believe once I get the first part working I can adapt it for the second part. Code:
Delete From Check Boxes
Ok i'm trying to do a simple delete from what is checked. can someone look at my code and determine why it's not working i when i submit with nothing check it works when i submit with something check it gives me The page cannot be displayed.I'm still new at all of this so excuse my messy code.
Filing Text Boxes
I have a select list which retrieves the values of a field from a database. I also have some text fields which I would like to fill with data from other fields in the same table which are associated with the selected item in the list. I can't seem to figure out a way to fill the text boxes with the values from the DB in the OnChange procedure of the select list. Does anyone know how I might go about this, or if it is even possible?
Dependent Drop Down Boxes
I've gotten the dependent drop down boxes to work except, when I fill out the form, and get to where I click the first drop down box and make a selection, the page refreshes and all of the fields turn blank, except for the second drop down box, which displays the correct records based on what was chosen in the first box in the entire form. Also the first drop down box returns to the first record in the list.
|