PDA

View Full Version : embedding a script within itself



hjordan
08-30-2008, 05:01 AM
1) Script Title:
Combo-Box Viewer (in Dynamic Content)

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/comboviewer.htm

3) Describe problem:

I am trying to get this to work within itself, ie. when the viewer chooses an option in the dropdown, another dropdown appears instead of text. Any ideas on that? I have tried copy pasting the <form> code that goes in the body within a div id for a specific option. I also tried separating the portion of the script that goes in the header into a separate javascript file that is embedded in the header of the page, but it didn't seem to help.

I know questions about multiple scripts on a page aren't generally supported, but multiples of this script are working great! Just not when I put it inside itself.

Thanks for any suggestions!

rangana
08-30-2008, 06:02 AM
You might find these links useful:
http://www.dynamicdrive.com/dynamicindex16/chainedselects/index.htm
http://www.dynamicdrive.com/dynamicindex16/formdependency.htm

hjordan
08-31-2008, 02:10 PM
Thank you! i know next to nothing about java so that was a big help.