Solved

Frame Style Display

Posted on 2011-02-14
3
383 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 40

Expert Comment

by:gurvinder372
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 82

Accepted Solution

by:
leakim971 earned 500 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
This article discusses how to create an extensible mechanism for linked drop downs.
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…

732 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