Hi dol007ok-ga,
You can accomplish this using JavaScript in your HTML code. First,
you have to make sure that your main frame is named 'main'. You can
find this out on your frame's page (usually index.htm) and look for
the '<frame name=' field.
Anyway, I've tested the following HTML in Frontpage. The HTML below
should go into your left frame. You'll have to modify your existing
options for Division and Dates to follow the examples below.
-----------------------------------------
<form name="pdfform">
<!-- webbot bot="HTMLMarkup" startspan -->
<script language="JavaScript">
<!--
function GetReport() {
var selRadio;
// get radio button selected
for (i=0;i<document.pdfform.reptype.length;i++) {
if (document.pdfform.reptype[i].checked == true) {
selRadio = document.pdfform.reptype[i].value;
}
}
parent.main.location.href=document.pdfform.division.options[document.pdfform.division.selectedIndex].value+'_'+document.pdfform.repdate.options[document.pdfform.repdate.selectedIndex].value+'_'+selRadio+'.pdf';
}
//-->
</script>
<!-- webbot bot="HTMLMarkup" endspan -->
<select name="division">
<option value="div1">Division 1 (Sales)</option>
<option value="div2">Division 2 (Marketing)</option>
</select><br>
<select name="repdate">
<option value="0100">January, 2000</option>
<option value="0200">February, 2000</option>
</select><br>
<input type="radio" name="reptype" value="Report1">Report 1<br>
<input type="radio" name="reptype" value="Report2">Report 2<br>
<input type="radio" name="reptype" value="Report3">Report 3<br>
<input type="button" value="Get Report"
onClick="javascript:GetReport();">
</form>
-----------------------------------------
Let me know through Request Clarification if you have problems
integrating this into your website.
Good luck,
mrbuzz-ga |