...

View Full Version : from combo into iframe?



zeki
09-07-2006, 09:01 AM
hello !

on the page http://www.javascriptkit.com/script/cut183.shtml there is an example of Double Combo. I want to change the line (function) so :confused:
function go(){
location=temp.options[temp.selectedIndex].value
}

that the via 2.nd combo selected web-site is shown in an iframe, not in a separate screen.
thanks in advance for any help...

zeki
09-07-2006, 09:35 AM
hi

as i look for a solution under the provided posts in the past, i found following answer on my question.

TITEL:
targeting the double combo drop down

ANSWER:
function go(){
top.framename.location=temp.options[temp.selectedIndex].value
}

and change the framename to what every you named the frame.

but i still couldn't get it work. how to replace/change the framename (between "" or ' ' or what/how). i tried all that variations but no use.
So i stiil need help :confused:

vwphillips
09-07-2006, 10:44 AM
document.getElementById('framename').src=temp.options[temp.selectedIndex].value

make sure the <IFRAME> has an ID as well as a name

zeki
09-07-2006, 11:19 AM
hi Vic

your code is :thumbsup:
thanxxxx



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum