473,698 Members | 2,051 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 1386
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
5016
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
1633
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 7.1 : clicking a link in the 'menu' frame simple reopens
1
1855
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 entire current frameset.
5
3508
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 (index.html) which invokes the frame set, the contents frame javascript menubar onmouseover function...
10
1796
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
2870
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, when the page/frameset first loads in either browser, it looks correct. But when you click the...
4
3356
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" in them. But when viewing it in Firefox it doesn't open the links into the 'main' frame. I've got...
2
2933
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
8671
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8598
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9016
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8856
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6515
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4360
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4613
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2321
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.