Click to See Complete Forum and Search --> : Drop down menu link, in one frame needs to load in another


Blood Angel
11-23-2003, 07:30 PM
Firstly thanks for reading, heres the problem; i have a page with two frames A & B, in frame A has a drop down menu script:

<SCRIPT>
function getSelect(s) {
return s.options[s.selectedIndex].value
}
</SCRIPT>
<FORM>
<SELECT NAME="list" SIZE=1 OnChange="location=getSelect(this)">
<OPTION value="#"> -> Choose Page <-
<OPTION value="http://www.page.com">This Weeks Odd News
<OPTION value="http://www.page.com">Archives
</SELECT>

Now i want a user to click a selection on the menu, and have it load in frame B. Can this be done and how?:confused:

requestcode
11-23-2003, 07:32 PM
Try this:
<SCRIPT>
function getSelect(s) {
parent.frameb.location=s
}
</SCRIPT>
<FORM>
<SELECT NAME="list" SIZE=1 OnChange="getSelect(this.options[this.selectedIndex].value)">
<OPTION value="#"> -> Choose Page <-
<OPTION value="http://www.page.com">This Weeks Odd News
<OPTION value="http://www.page.com">Archives
</SELECT>

Blood Angel
11-23-2003, 07:53 PM
Ok it says it has a "Unterminated string error"

<SELECT NAME="list" SIZE=1 OnChange=getSelect(this.options[this.selectedIndex].value)">

where that red fullstop is char 51

i have only been learning scripting for a few days so i am unsure of what it means.