Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Frame Style Display

Posted on 2011-02-14
3
Medium Priority
?
404 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:Gurvinder Pal Singh
ID: 34890791
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
ID: 34890896
No Same error, is null or not an object
0
 
LVL 83

Accepted Solution

by:
leakim971 earned 2000 total points
ID: 34903224
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…
Suggested Courses

810 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