?
Solved

Mozilla issue with JavaScript, screen.availHeight and <iframe>

Posted on 2003-03-25
5
Medium Priority
?
732 Views
Last Modified: 2007-12-19
I ran into an interesting issue this morning - maybe one of you will have a solution. I can get the height of a browser window using screen.availHeight in Mozilla/IE, just fine, but when there's an <iframe> on the page, Mozilla pukes. For more information, please see:

http://stage.onpointdigital.com/sandbox/new/height.html

This is a complete stand-alone file, so feel free to view-source and save for debugging purposes.

Thanks,

Matt
0
Comment
Question by:mraible
[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
  • 2
  • 2
5 Comments
 

Expert Comment

by:Asp
ID: 8203297
What version of IE you are using? In IE6 it works just fine, I guess it's a bug when focused on the iframe.

Ps. IE 4 usually has/had many of these bugs
0
 
LVL 1

Author Comment

by:mraible
ID: 8203461
Notice from my original question that this is a problem with Mozilla, not IE.  

I'm using version 1.3 on Windows XP.
0
 
LVL 1

Accepted Solution

by:
niteshn earned 1000 total points
ID: 8203872
Problem is with the name of the iframe you are adding. You are using the default javascript object name screen as the name of the iframe window which now overrides the default object and hence the error. Change the name of the window in your addIFrame method and things will work fine!
0
 

Expert Comment

by:Asp
ID: 8203930
Sorry, read too fast :)
0
 
LVL 1

Author Comment

by:mraible
ID: 8204291
Boy am I an idiot - oh well, I love easy solutions!
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

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'…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
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

765 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