|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I have an application where I want the user to be able to select from a groupl
of items in a drop down menu. I do not know at design time how many there might be. Prior to laoding the html page I will know. How can I do this? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Hi,
I assume that you are using Javascript for creating the drop down menu and this javascript work on arrays for fetching the item in and menu, having said this there are two solutions to your problem: - a) If you can change the extension of the page to PHP or ASP then you can directly fetch the items to be displayed from the database and create the array for javascript on fly. b) If you have to keep HTML as the extension then create an XML file for the list of items and in the Javascript instead of using array as source of items use this XML file and whenever there is a new item to be added then it will simply have to be added in the XML file. Hope this s. Best Regards, Maneet LeXolution IT Services (P) Ltd. http://www.lexolutionit.com |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Actually I was using the Spry widget
|
|
![]() |
| Outils de la discussion | |
|
|