473,545 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem adding menu to column frameset

Currently I am able to add my menu to a frameset that just uses rows with
this code:
if (window == top) {

//this obtains the body tag element of the document
var theBody = document.getEle mentsByTagName( 'body')[0];

//this inserts our menu as the first element in the body
theBody.insertB efore(menuDiv, theBody.childNo des[0]);
}

However if a frameset uses columns then this code does not add my menu to
any of the frames. I have looked on google for help but can't find any.
Could someone help me figure out how to add my menu to a page that uses
columns.

Joseph Scoccimaro
Dec 9 '05 #1
1 1379
Joseph Scoccimaro wrote:
Currently I am able to add my menu to a frameset that just uses rows with
this code:
if (window == top) {
So the following block is executed if, and only if, there is either
no frameset at all, or the code is located in the top frameset document.

If the former, I fail to see any problem.

If the latter, the `body' element can only be child of the `noframes'
element in which case it would only be displayed if frames were not
supported.
//this obtains the body tag element of the document
var theBody = document.getEle mentsByTagName( 'body')[0];
Ever heard of the `body' attribute of the HTMLDocument interface, being
defined in W3C DOM Level 2 HTML and downwards compatible to IE4?
//this inserts our menu as the first element in the body
theBody.insertB efore(menuDiv, theBody.childNo des[0]);
}

However if a frameset uses columns then this code does not add
my menu to any of the frames.
You are not making any sense. Perhaps you use a weird definition
of "frameset" different from that in the HTML 4.01 Specification.

<URL:http://jibbering.com/faq/#FAQ4_43>
<URL:http://validator.w3.or g/>
<URL:http://diveintomark.or g/archives/2003/05/05/why_we_wont_hel p_you>
[...]
Could someone help me figure out how to add my menu to a page that uses
columns.


Do not use frames if you use them now. Neither are they required for
a navigational menu, nor is client-side scripting required for that.
PointedEars
Dec 9 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
4978
by: elad | last post by:
Hi The Menu doesn't work properly when I have 2 frame and the Menu popup frame=document target frame, when I choose item in the menu the doc opened and the menu get stuck. Here is the code I'm using: FrameSet ------------------------------------------------------- <html>
1
1624
by: Phil | last post by:
Supposedly, the code below should assign the correct value to the 'url' variable. But all I get is a blank 'main' Frame with apparently nowhere to go when I click on the link in the 'menu' Frame.. Worst(yesyes!!) 1 - Explorer 6 : clicking a link in the 'menu' frame simple reopens an instance of the FRAMESET, syntax error msg. 2 - Netscape...
1
1846
by: lindsey.crocker | last post by:
I have a problem calling a framset from javascript - I will explain as best I can. I have a site with 2 frames. Left frame contains a javascript menu. Right frame contains the page and a scrolling javascript news item. I want to have a function on my scroller that when clicked on it calls the frameset for the news area and it replaces the...
5
3497
by: Martin Chen | last post by:
I have a frame set (as per MS FrontPage 2000). It has a contents and a main frame. The contents frame has a menu bar written with with javascript (in the context of a table). In IE6.1 everything works fine as it also does in firefox if I call the contents frame directly (i.e. outside of its frameset). However, if I call my main page...
10
1788
by: Richard Lionheart | last post by:
Hi All, I'm trying to put together a model presentation system consisting of a: -- "toolbar" row, -- three columns for topics, subtopics and a workarea (content) -- a "footer" row. The topics column presents three links. When I click on the first link, topic1a, I expect its content to presented in the subtopics
13
2851
by: Giggle Girl | last post by:
Hi there, I am having a problem with the behavior of Firefox, where lefthand column content is not resized properly after it is "collapsed" and then "re-expanded". An online demo is available here: http://s161149005.onlinehome.us/DEMOS/FF/RESIZE_PROB/main/frameset.asp It works fine in IE 6, but in Firefox, it is broken. Specifically,...
4
3352
by: adamalton | last post by:
Hi, I have a frameset with a menu down the left and a main frame on the right. (The menu contains a flash jukebox, which I why it's in a frame, so that you don't have to restart the jukebox every time you click on a link in the menu.) I have named the main frame name="main" in the frameset, and all of the links in the menu have target="main"...
2
2925
by: panos100m | last post by:
Hi there I am using a menu frame on the left side but i cant destroy it using the logout link that i created ... any ideas? //index.php // PAGE this will just redirect to the frame2.php (normally login / pass here but //removed unesecery code) just to show example
0
7415
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7928
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7440
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7775
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5997
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5344
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3470
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3451
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1030
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.