PDA

View Full Version : Chained Menu in frames



tryhard
09-10-2008, 05:36 PM
1) Script Title: Chained Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/chainedselects/index.htm
3) Describe problem: I hope this all makes since. I have setup the cahined menu and have it working, I am using 9 dropdowns. I have set the var hide_empty_list=true; and onclickaction="goto". so far everthing is working great.

Now my problem:
I want to have this in frames, menu in left frame and text in right frame. (not sure how to do that) I also what it so that when dropdown 1 shows up then the informaton in the right frame changes at the same time. So when a new dropdown shows up in the menu then a new page will show up in the right frame. hope this makes since. I am not sure how to do this.

Example

Dropdown one
option - finish
polished
pearl
hot red

When you see this dropdown then I want a new page to open in the right frame so that I can have images and other content there.

TH

ksather
09-18-2008, 08:37 PM
Here is how you can have the menu in one frame and have the results open in another..

Chanined menu in IFrames

first open
config.js and change

FIND
var newwindow=0 //Open links in new window? 1=yes, 0=no.

and Change to
var newwindow=1 //Open links in new window? 1=yes, 0=no.




Next Open chainedmenu.js

Find
window.open(selectedOptionvalue)

Replace with
window.open(selectedOptionvalue,'myiframe')


You will need to change 'myiframe' to the frameset that you wish to have the page open in.

--
"I would love to change the world, but they won't give me the source code".

Hope this helps

ksather