PDA

View Full Version : MM_jumpMenu define target


fluff
09-05-2002, 07:38 AM
I have a dreamweaver doc that has 2 frames (topFrame, mainFrame). The topFrame contains a .htm that has pulldown menus. The mainFrame is where i want the links from the topFrame to be displayed.

Yes i realise this seems so simple! ...i am ashamed... :(

my <script> is the norm:
function MM_jumpMenu(targ,selObj,restore){...}

in the <body> I have
<select class="combobox" name="SiteMap" onchange="if(options[selectedIndex].value){location = options[selectedIndex].value}; MM_jumpMenu('parent',this,0) " size="1"> // i realise 'parent' is not appropriate for what i want
<option selected>some header</option>
<option value="./someurl.htm">someName</option><option value="./someurl.htm"> someName</option><option value="./someurl.htm">someName</option>
</select>

Have tried putting 'mainFrame' instead of 'parent' but alas I have failed.

glenngv
09-05-2002, 08:23 AM
you didn't post the content of the function.
but it is not needed anyway, if what you just want is to open the links at the frame 'mainFrame'.


<select class="combobox" name="SiteMap" onchange="if(this.options[this.selectedIndex].value) window.open(this.options[this.selectedIndex].value,'mainFrame')" size="1">
<option selected>some header</option>
<option value="./someurl.htm">someName</option>
<option value="./someurl.htm">someName</option>
<option value="./someurl.htm">someName</option>
</select>

fluff
09-09-2002, 12:58 AM
thanx glenngv!! very much appreciated :thumbsup: