View Full Version : Comboboxes to different frame
midez
09-10-2002, 08:29 AM
I use the double combobox and the triple combobox that you can find on JavaScript Kit (see the zip-file). When you pick a link in those it opens in either the same frame as it self (double combo) or it replaces the hole window (triple combo). What i want is the possibility to open it in a predifined frame, but how do i do that. I also want the triple combo to open the final url when you click a button (image) not automaticly as it is now.
Please help!
Mike :confused:
JohnKrutsch
09-10-2002, 02:57 PM
In the doble combo make this change:
function go(){
top.FrameName.location=temp.options[temp.selectedIndex].value
}
where FrameName is the name of the frame you are targeting.
For the tripple combo take out this snippet from the third drop down:
onChange="redirect2(this.options.selectedIndex)"
then add a button to the form similar to this:
<inout type="button" value="go" onclick="redirect2(document.isc.stage3.options.selectedIndex)" />
if you want the tripple combo to open in a different frame then change this part here:
function redirect2(z){
top.FrameName.location=temp1[z].value
}
midez
09-13-2002, 08:49 AM
Thanks a million, John! You made my day!
:thumbsup: Mike//
kafir
03-20-2005, 02:21 PM
How do i get the function to open in a new window?
/kafir
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.