Board Logo

Menus don't appear in Frames Page
briesmith - 8/13/2003 at 03:26 PM

Hello

I've got a 3 page frameset (Default.asp, header.asp, menu.asp & content.asp)which when I load it via Default.asp loads the 3 pages OK but fails to show the menu bar. However if I load the individual page (menu.asp) on its own outside the frameset the menu bar appears. Why is this and how do I control it?


briesmith - 8/13/2003 at 04:43 PM

Hello

Further to my earlier email. I've now got part of the menus to appear but I think my frameset definition
<script>
<!--
linkURL = "content_frame.asp"
if( parent.document.URL )
{
callingURL = parent.document.URL;
if( callingURL.indexOf('?') != -1)
{
linkURL = callingURL.substring(callingURL.indexOf('?')+1,callingURL.length)
}
}
document.writeln('<frameset framespacing="0" border="0" frameborder="0" rows="120px,80px,*">');
document.writeln('<frame name="top" src="header_frame.asp" target="_self" marginwidth="0" marginheight="0" scrolling="no">');
document.writeln('<frame name="middle" src="menu_frame.asp" target="_self" marginwidth="0" marginheight="0" scrolling="no">');
document.writeln('<frame name="bottom" src="' + linkURL + '" marginwidth="0" marginheight="0" scrolling="auto" target="_self">' );
// -->
</script>

is conflicting with yours

var frameset = [
['top'],
['middle'],
['bottom']
]
new menu (MENU_ITEMS0, MENU_POS0, frameset);


I don't know why you've chosen to do things this way - and a mention of it in the documentation would have been more than just a little helpful I have to say - but there we are.

What I can't work out is where you define in which frame loading pages are to appear.

Where do you say that "page.asp/html" etc loads into "content" or "header"?.

I wasn't going to complain but I've changed my mind. The documentation, particularly the bit to do with frames, is beyond anyone's comprehension. It just doesn't make sense. And it's cost me at least a day if not more.

I might not be quite so frustrated if the IM service you boast about had been available but it wasn't.


gsergiu - 12/16/2003 at 05:43 PM

The possitioning is absolute and the menu can be hide under frames. Take care of possitioning. Maybe this is the answer, may not. It's an idea anyway.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/