473,395 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Firefox / Chrome issues

Hi guys

I have a piece of code that is working on internet explorer for pc but not mac and not on firefox or chrome.

Do you have any suggestions please.

Expand|Select|Wrap|Line Numbers
  1. <script>
  2. function resizeIframe(main) {
  3. if(self==parent) return false; /* Checks that page is in iframe. */
  4. else if(document.getElementById&&document.all) /* Sniffs for IE5+.*/
  5.  
  6. var FramePageHeight = framePage.scrollHeight + 10; /* framePage
  7. is the ID of the framed page's BODY tag. The added 10 pixels prevent an
  8. unnecessary scrollbar. */
  9.  
  10. parent.document.getElementById(main).style.height=FramePageHeight;
  11. /* "iframeID" is the ID of the inline frame in the parent page. */
  12. }
  13. </script>
  14. <body id="framePage" onload="resizeIframe('main')">
  15.  
May 21 '12 #1
1 1863
Dormilich
8,658 Expert Mod 8TB
FramePageHeight is not defined in non-IE browsers (maybe except Opera) since document.all is IE-only.
May 21 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: drdeadpan | last post by:
Hi, Being a newbie, pardon me if this question has been answered. I was finding it difficult to search for my problem on Usenet 'cos I was having a tough time describing it.. Here gow. I...
1
by: rahulthathoo | last post by:
We are having some problem with out css- style on firefox. The same site displays fine in IE. But in Firefox, there are some hyperlinks which just dont appear as hyperlinks, rather appear as plan...
3
by: DanWeaver | last post by:
I have a panel on an asp page that has about 20 controls on it, an ajax update panel within it- text boxes, listboxes, imgbuttons etc. I would like to be able to copy this panel- ie put similar but...
3
by: Trevor2007 | last post by:
I have never been able to get the user.css file to work for me at ail, can any one help, I know how to change the web page font through the tools menue, but I would like to change the font size of...
7
by: mike57 | last post by:
The minimal AJAX script below works in Firefox, but not in IE, Opera, or Chrome. I could use some suggestions or referrals to resources that will help me get the script working in other browsers. ...
6
by: oneadvent | last post by:
This code works in Chrome and pulls a second drop down, but it will not work in IE6, (I dont have IE7/8 to check right now, but can later) and it works in FF, in IE it doesn't do anything at all. ...
1
by: jeanyl | last post by:
spotlight doesn't work in firefox and chrome... <html> <head> <title>Your title here</title> <style type="text/css"> <!-- #content{ position:absolute;top:0px;left:0px;text-align:center;
17
Elyse Summers
by: Elyse Summers | last post by:
The site: http://www.bradleyalanhart.com/index2.html The context: When you start opening the flipmenu navigation in Firefox, the links open in a reverse indent cascading towrds the left...
1
by: Zabivb | last post by:
I apologies first yesterday i was in a hurry to complete the task ... My problem is javascript validation is working fine in IE and firefox but the validation is not working in chrome. Here is the...
1
by: Chris Cordner | last post by:
Good Evening I am building a website using DIVs and CSS. I have everything in a container DIV, which I want to centre on the page. The CSS is below: #container{ width: 100%; max-width:...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.