473,609 Members | 2,766 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reuse a drop down list

2 New Member
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 3155
Death Slaught
1,137 Top Contributor
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
sross90
2 New Member
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 Top Contributor
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
ift40458
13 New Member
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 Recognized Expert Expert
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
6151
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 that appear when user clicks the drop-down arrow button. Because items in the Drop down list are a little long, user can't see the full thing when they pull down the items from the drop down list.
2
12608
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 select any skill in 1st drop down list then i'll select % of this skill in the 2nd list box , based on the percentage i've selected in the 2nd list box it has to display 2 sets of drop down list boxes at run time one for selecting skill and
4
9283
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 if it works, and if it does not, tell me why it does not work. Thanks.
3
7345
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 document selected (my application uses the BusinessObjects Java Web Services SDK) The 2nd list is dependent on the 1st, while the 3rd list is dependent on the 2nd. In other words, this is what i want my application to do -select a folder from the...
0
8112
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8047
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8198
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8376
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4006
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4063
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2515
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1636
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.