473,383 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Reuse a drop down list

I am working on an old classic asp purchasing system which has a header and lines screen.

On the lines screen there are a number of drop down lists <select> items. They have close to a thousand <options> within them and there could be 20 lines.

This leads to a considerable ammount of HTML.

Is it possible to reuse the source of one element. I.e popup the same list everytime.

Ideally I would creaet a select with just one option, they current selected value held in the database. When the user clicks the select the rest of the items are added to the list dynamically.

can that be done?
Nov 27 '07 #1
5 3140
Death Slaught
1,137 1GB
I am working on an old classic asp purchasing system which has a header and lines screen.

On the lines screen there are a number of drop down lists <select> items. They have close to a thousand <options> within them and there could be 20 lines.

This leads to a considerable ammount of HTML.

Is it possible to reuse the source of one element. I.e popup the same list everytime.

Ideally I would creaet a select with just one option, they current selected value held in the database. When the user clicks the select the rest of the items are added to the list dynamically.

can that be done?
HTML/CSS can't do this, JavaScript or PHP would be the way to go.

Thanks, Death
Nov 27 '07 #2
Can I just use an array and the items?

Or alternatively

Cant I just set up a div tag, output the contents of the select into there and change its location as and when the user clicks an item?
Nov 27 '07 #3
Death Slaught
1,137 1GB
Can I just use an array and the items?

Or alternatively

Cant I just set up a div tag, output the contents of the select into there and change its location as and when the user clicks an item?
Ask in the JavaScript forum.

- Death
Nov 27 '07 #4
Hi sross90...


problem was not clear.


if you can express your problem a bit more clear with the help of examples,

I've worked on problems like this, that's why i am asking you again for clarity of your problem.

Best Regards,
ift40458
Nov 28 '07 #5
drhowarddrfine
7,435 Expert 4TB
ift40458,
Please do not use shorthand words. Many of our visitors do not speak English as a first language.
Nov 28 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Don Wash | last post by:
Hi There! I have a Server-side Drop-down box in ASP.NET (VB) page. What do I do to widen the Drop down box's Pull-Down list's width? I'm not talking about the Drop-down box's width but the box...
2
by: Yoshitha | last post by:
hi I have 2 drop down lists in my application.1st list ontains itmes like java,jsp,swings,vb.net etc.2nd list contains percentage i.e it conatains the items like 50,60,70,80,90,100. i will...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
3
by: penny111 | last post by:
Hi there, For my application, i need to have 3 drop down lists 1. drop down list of folder names 2. drop down list of documents in the folder selected 3. drop down list of instances of the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.