Problem with Frames

juadams
11-09-2001, 07:28 AM
OK here is my problem. I have a webpage with a combobox and a command button. On that same page I have an inline frame. After choosing an option in the combobox and then pressing the command button I want another page to load into the frame. Pretty simple right? Well I cannot get it to work. I am using VBScript since this is only going to be used with IE and I am not familiar with javascript. Any help??

Thanks in advance.

Ad1
11-09-2001, 08:01 AM
give your iframe the id of "frametest" and your combo the id of "combotest" and then call this function from your button's click event
<pre><font color=red>function go()
{
ind=combotest.selectedIndex;
document.getElementById("frametest").src=combotest.options[ind].text;
}</font color=red></pre>

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum