PDA

View Full Version : chained select menu target



karlwmiller
02-09-2007, 03:45 PM
1) Script Title: Chained Select Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/chainedselects/index.htm

3) Describe problem: hi guys i am trying to get the selected option to display in the mainFrame and not the menuFrame any help would be greate, i have tryed putting the usual target commands all over the place but it dont with the with script thanks allot
karl

jscheuer1
02-09-2007, 04:15 PM
There are no frames in the demo, are there? And, as far as I know, no page is being opened so a target wouldn't do anything. If you mean that you want a form element in one frame to be populated by script in another frame, that can be done:


top.frames.framename.document.forms.formname.elementname.value=varname;

Where varname contains the string value that you want displayed in elementname.