View Full Version : Drop-down menu selection that displays a second drop-down menu
roadrunnerray
10-06-2009, 07:55 PM
I have a XSLT web page where the user posts their demographic data to a number of text boxes and also selects data from some drop-down menus. When the selection is made from one drop-down menu I would like another to appear with a subset of selections.
Here is a link to the test page:
http://128.123.83.183/fmi/xsl/Registration%20XSLT/new_participant_reg_test.xsl
When the user selects the campus I want a department pull-down menu to appear.
This would be similar to selecting a printer driver by selecting the printer model from a drop-down menu and then having a second drop-down menu appear with the corresponding drivers.
Any thoughts would be appreciated...........Ray
oesxyl
10-06-2009, 08:51 PM
I have a XSLT web page where the user posts their demographic data to a number of text boxes and also selects data from some drop-down menus. When the selection is made from one drop-down menu I would like another to appear with a subset of selections.
Here is a link to the test page:
http://128.123.83.183/fmi/xsl/Registration%20XSLT/new_participant_reg_test.xsl
When the user selects the campus I want a department pull-down menu to appear.
This would be similar to selecting a printer driver by selecting the printer model from a drop-down menu and then having a second drop-down menu appear with the corresponding drivers.
Any thoughts would be appreciated...........Ray
department data in a xml file, a xslt file to transform on the fly and javascript for actions. Using the events you can trigger the load of xml, transform and output results in the page.
I hope this help you, :)
best regards
roadrunnerray
10-06-2009, 09:14 PM
department data in a xml file, a xslt file to transform on the fly and javascript for actions. Using the events you can trigger the load of xml, transform and output results in the page.
I hope this help you, :)
best regards
oesxyl, thanks for your response. I will be going to a database with the campus selected to look for the associated departments. Can I create a new page with the department pull-down menu without using javascript?............Ray
oesxyl
10-06-2009, 09:32 PM
oesxyl, thanks for your response. I will be going to a database with the campus selected to look for the associated departments. Can I create a new page with the department pull-down menu without using javascript?............Ray
yes, you can use server site scripting and you can fetch data direct from database.
If you are sure that you don't need to change code often you can dump departments and other data you need from the database and hardcode in the page.
when I read in your post that you have data stored in a database I was thinking to sugest you to use ajax and poll data direct from the database and build the page using the response. But ... this implies again javascript, :)
best regards
roadrunnerray
10-06-2009, 09:55 PM
yes, you can use server site scripting and you can fetch data direct from database.
If you are sure that you don't need to change code often you can dump departments and other data you need from the database and hardcode in the page.
when I read in your post that you have data stored in a database I was thinking to sugest you to use ajax and poll data direct from the database and build the page using the response. But ... this implies again javascript, :)
best regards
Thanks again oesxyl, I am weak in javascript and not familiar with Ajax.
I will drawing this data from a department database table that I update periodically so the pull-down menu will change with these updates. The campus pull-down menu is currently populated from the campus database table. I was not clear in what I wanted to do. When the user selects their campus I would like another page to popup with all of the departments associated with that campus. How can I get this action to occur when the campus selection is made? Is it possible without javascript or Ajax?.......Ray
oesxyl
10-06-2009, 10:31 PM
Thanks again oesxyl, I am weak in javascript and not familiar with Ajax.
I will drawing this data from a department database table that I update periodically so the pull-down menu will change with these updates. The campus pull-down menu is currently populated from the campus database table. I was not clear in what I wanted to do. When the user selects their campus I would like another page to popup with all of the departments associated with that campus. How can I get this action to occur when the campus selection is made? Is it possible without javascript or Ajax?.......Ray
as far as I know, without js/ajax only a input of type submit can trigger some action and load a popup page or a new window( from a (x)html point of view).
I'm not a big fan of js and ajax but is usefull in this context, :)
best regards
roadrunnerray
10-06-2009, 10:35 PM
as far as I know, without js/ajax only a input of type submit can trigger some action and load a popup page or a new window( from a (x)html point of view).
I'm not a big fan of js and ajax but is usefull in this context, :)
best regards
oesxyl, many thanks for your thoughts .................Ray
oesxyl
10-06-2009, 11:07 PM
oesxyl, many thanks for your thoughts .................Ray
you are welcome but unfortunately was not a big help, :)
best regards
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.