Gossamer Forum
Home : General : Internet Technologies :

MM_jumpMenu define target window

Quote Reply
MM_jumpMenu define target window
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.

Crazy 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.
Quote Reply
Re: [fluff] MM_jumpMenu define target window In reply to
It would be something like this:

....onChange="MM_jumpMenu('parent.frames[\'mainFrame\']',this,0)"....
Quote Reply
Re: [fluff] MM_jumpMenu define target window In reply to
I've moved this to the appropriate forum.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [ArmyAirForces] MM_jumpMenu define target window In reply to
many thanx to ArmyAirForces for taking the time to help. very much appreciated Smile
Quote Reply
Re: [Alex] MM_jumpMenu define target window In reply to
DOH! Tongue sorry bout that. Thanx Alex.