SysRoute
12-06-2003, 09:21 PM
Ok, I've gotten as far as getting my pulldown menu setup and it redirects as it's supposed to. My problem is that I have an iFrame on the page that I would like one of the menu items to change when selected. The target iframe is named "navigator". Here is the code I have so far:
IN THE HEAD:
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Alex Tu <boudha1@hotmail.com> -->
<!-- Web Site: http://www.geocities.com/alex_2106 -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
// End -->
</SCRIPT>
THE FORM ITSELF:
<FORM NAME="menufrm" ACTION="" METHOD=POST>
<DIV ID="Forms Combo Box1LYR">
<SELECT ID="Forms Combo Box1" NAME="menu1" onchange="submit(); return true" name="url" javascript:formHandler(this)>
<OPTION VALUE="" SELECTED>What's Your Function?</OPTION>
<OPTION VALUE="http://www.abbeyapartments.com/newsite/html/ipixapart.html">360 Virtual Tours</OPTION>
<OPTION VALUE="http://www.abbeyapartments.com/html/workorder.html">Submit Workorder</OPTION>
<OPTION VALUE="">Forms Download</OPTION>
</SELECT>
</DIV>
</FORM>
What might I be doing wrong? When I click the pulldown I get an error that says resource not allowed. Don't know what to do...
IN THE HEAD:
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Alex Tu <boudha1@hotmail.com> -->
<!-- Web Site: http://www.geocities.com/alex_2106 -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
// End -->
</SCRIPT>
THE FORM ITSELF:
<FORM NAME="menufrm" ACTION="" METHOD=POST>
<DIV ID="Forms Combo Box1LYR">
<SELECT ID="Forms Combo Box1" NAME="menu1" onchange="submit(); return true" name="url" javascript:formHandler(this)>
<OPTION VALUE="" SELECTED>What's Your Function?</OPTION>
<OPTION VALUE="http://www.abbeyapartments.com/newsite/html/ipixapart.html">360 Virtual Tours</OPTION>
<OPTION VALUE="http://www.abbeyapartments.com/html/workorder.html">Submit Workorder</OPTION>
<OPTION VALUE="">Forms Download</OPTION>
</SELECT>
</DIV>
</FORM>
What might I be doing wrong? When I click the pulldown I get an error that says resource not allowed. Don't know what to do...