Solved

Frame Style Display

Posted on 2011-02-14
3
366 Views
Last Modified: 2012-06-21
Hi Folks,

I have the following code () which works fine on a webserver i.e no error but locally I get the following error

top.document.all.Navigation.style is null or not an object.

top.document.all.Navigation.style.display = 'none';  // Works on webserver

Here is how i have my frame set defined.


<frameset rows="100%,*" frameborder="no" border="0" framespacing="no" >

<frame src="ca_16_01_0010.htm" name="Content" title="Main Content" SCROLLING="no" MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="no" BORDER="0" noresize>

<frame src="bottomnav01.htm" name="Navigation" title="Navigation" SCROLLING="no" MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="no" BORDER="0" noresize>

</frameset>
top.document.all.Navigation.style.display = 'none';

Open in new window

0
Comment
Question by:rgarimella
3 Comments
 
LVL 40

Expert Comment

by:gurvinder372
Comment Utility
try
<frame src="bottomnav01.htm" name="Navigation" title="Navigation" SCROLLING="no" MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="no" BORDER="0" noresize>

window.frames['Navigation'].style.display = "none"
0
 

Author Comment

by:rgarimella
Comment Utility
No Same error, is null or not an object
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
Comment Utility
no error but no change : window.frames["Navigation"].document.documentElement.style.display = "none";

Check this post :
http://www.developertutorials.com/tutorials/javascript/how-hide-frame-javascript-050427-1225/
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now