/    Sign up×
Community /Pin to ProfileBookmark

jump menu in frames in an iframe???

hello all. im having trouble getting my jump menu to jump. i have an iframe and inside that iframe i have a frame set with three frames. the top frame has the main jump menu that i want to direct to the second frame that has the sub jump menu and the sub jump menu i want to open the content in the main frame within the frame set. it was a simple dreamweaver creation but when i placed the frameset in the iframe i found out it does not work.

basically i want a jump menu to open a html file in another frame within an iframe. can anybody offer any assistance?

here is the code for the iframe:

[CODE]<iframe src=”http://example.com/frameset.html” width=320 height=240 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=”no”></iframe>[/CODE]

here is the code for the frameset:

[CODE]<frameset rows=”23,*” cols=”*” framespacing=”0″ frameborder=”no” border=”0″ id=”frameset”>
<frame src=”menu.html” name=”topFrame” scrolling=”No” noresize=”noresize” id=”topFrame” />
<frameset rows=”23,*” cols=”*” framespacing=”0″ frameborder=”no” border=”0″>
<frame src=”subMenuBlank.html” name=”bottomFrame” scrolling=”No” noresize=”noresize” id=”bottomFrame” />
<frame src=”” name=”mainFrame” id=”mainFrame” />
</frameset>
</frameset>
<noframes>[/CODE]

here is the code for the jump menu:

[CODE]<script type=”text/JavaScript”>
<!–
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+”.location='”+selObj.options[selObj.selectedIndex].value+”‘”);
if (restore) selObj.selectedIndex=0;
}
//–>
</script>

</head>

<body>
<form name=”form1″ id=”form1″>
<select name=”mainMenu” class=”jumpBox” onchange=”MM_jumpMenu(‘frameset.frames[‘bottomFrame’]’,this,0)”>
<option value=”subMenuBlank.html” selected>please select a category…</option>
<option value=”javascript:null()”></option>
<option value=”MM_theMainEvent.html”>THE MAIN EVENT (showcase galleries)</option>
<option value=”MM_documentThisDK.html”>DOCUMENT THIS (danish days)</option>
<option value=”MM_documentThisSCO.html”>DOCUMENT THIS (the old days)</option>
<option value=”MM_girlsAndBoys.html”>GIRLS & BOYS</option>
<option value=”javascript:null()”>–</option>
<option value=”MM_salida.html”>ALL THINGS SALIDA</option>
<option value=”MM_roskilde05.html”>ROSKILDE FESTIVAL 2005</option>
<option value=”MM_artWork.html”>ART WORK</option>
<option value=”javascript:null()”>–</option>
<option value=”javascript:null()”></option>
</select></form>
[/CODE]

any help would be great.
kind regards,

~alerio

to post a comment
HTML

0Be the first to comment 😎

×

Success!

Help @alerio spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...