Question

iframe not working in IE but working in FF and Safari

Asked by: radshaw_longer

I am donating my time to a cub scout pack, and have a page that links to the BSA homepage through an iframe.  This works in FF, Safari and Opera, but does not work in IE7 or IE8.

page can be viewed at

http://www.lospadrespack93.com/leaderresources.html

Any help would be appreciated

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-27 at 12:57:12ID24848638
Tags

Internet Explorer iframe not working

Topics

Scripting Languages

,

Components

,

Miscellaneous Web Development

Participating Experts
3
Points
500
Comments
32

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. I have a popup of an image that appears behind a DropDow…
    I have a popup of an image that appears behind a DropDownList that is right above it in IE6. It works fine in IE7, FF, Opera, Safari. How can I fix this bug?
  2. Transparency in Safari?
    This works in FF and IE, but not in Safari. Is there a way to do it?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: BazzeFTWPosted on 2009-10-27 at 14:14:40ID: 25677595

Try removing height="450px" and width="900px" and add this instead: style="height: 450px; width: 900px;"

 

by: elvin66Posted on 2009-10-27 at 14:25:45ID: 25677745

If that doesn't work, set your table cell height to the same as the <iframe> height and try that.

 

by: radshaw_longerPosted on 2009-10-27 at 14:51:02ID: 25677978

No luck.  The content is there and is occupying the correct amount of space.  I added a title to show you that it is there, but just not visible.  The title comes up in a tool tip as Leader Resources.  

 

by: elvin66Posted on 2009-10-27 at 15:07:50ID: 25678152

Why can't these big companies sort their %^*& out and write standard international code for christ sakes! Now that I've vented, we will keep working on the IFRAME problem but first, can you try using <embed> instead of iframe just to see if it works. Try this....

<embed src="http://www.scouting.org/scoutsource/CubScouts/Leaders.aspx" name="leader" align="middle" scrolling="Yes" frameborder="1" id="leader" style="height: 450px; width: 900px;" title="Leader Resources" longdesc="Leader Resources"></embed>

so just replace the <iframe> tags with <embed>
Let me know if this works

 

by: radshaw_longerPosted on 2009-10-27 at 15:16:18ID: 25678231

I hear you on the vent, why can't they all just adhere to standards, coding for multiple browsers sucks!  So it did not work, just comes up with a empty box.  I know iframes are working on this machine because the following page works.

http://www.xtraphones.co.uk/phones2.php

I have been able to duplicate from 2 machines, different internet connections one on IE7 and one on IE8.  Frustrating!!!!

 

by: elvin66Posted on 2009-10-27 at 15:21:04ID: 25678298

Ok so let's start with that iframe. Try using it on your page somewhere else just to see if it shows up.

<iframe name="section" frameborder="NO" framespacing="0" src="news.html" width=350 height=250></iframe>

change the 'src="news.html" part to some html or php file you have on your server or in the same folder as your main page resides. See if it displays properly then we can continue.

 

by: radshaw_longerPosted on 2009-10-27 at 15:39:53ID: 25678491

Ok so it works with a local file, but not a cross domain.  I have dbl checked the security settings under the misc. section for the 2 iframe entries.  I suppose I could recreate the content that I want or link to each individual one.  

 

by: elvin66Posted on 2009-10-27 at 15:43:58ID: 25678537

Well, I think it is more a problem with displaying .aspx files.  I have uploaded a page here

http://www.junktraders.co.nz/tables.html

Go there and you should see an iframe at the top with a website in it. Under that, the same iframe with your .aspx site referenced. IE will not show the .aspx file for some reason. Let me know what you see there.

 

by: radshaw_longerPosted on 2009-10-27 at 15:48:04ID: 25678560

I think you are correct.  So there probably is not a fix for this.  I see your top iframe and not the bottom.

 

by: elvin66Posted on 2009-10-27 at 15:53:43ID: 25678599

Yes and in FireFox and Opera I see them both. I cannpot see the bottom one in EE though. If I left click and highlight the page I can see that there is an object there the size of the iframe but not the actual information so, it is not a problem displaying webpages, but with displaying '.aspx' pages and maybe other formats but we don't know this without further testing. <iframe> is just another way of doing an <embed> function so if you were not able to use <embed> either it is because of the page you are linking to.

At this point, I would suggest if you own the other page (.aspx) you may want to save another version of it as a php or html file for use in your iframe. Else, you could save a small thumbnail of the page and just link to it but that doesn't look as nice as the iframe.

For years web developers have warned against using iframes because of the non compatibility across all browsers so you may want to consider this.

that's about all the help I can be to your problem. Sorry it didn't get resolved.

Cheers
Mark

 

by: mplungjanPosted on 2009-10-28 at 00:32:03ID: 25680626

I read the ranting but do not believe the actions. Iframes have worked on all browsers since ie4 and moz 1 so there is something else entirely going on here. Can we reopen this and find a real solution? I mean EMBED? That is too far out.

 

by: mplungjanPosted on 2009-10-28 at 07:30:45ID: 25683607

So I was correct - took some investigation - I felt like I was in CSI ;)

It has NOTHING to do with the origin of this page, if it is aspx or whatever.

It is down to one simple little thing.

In their stylesheet they have

iframe {
   position:relative;
}

which messes with YOUR iframe

When I change it to

iframe {
   position:absolute; !important
}

I see the frame in IE

Now we need to find a way to REMOVE or have your page IGNORE  the css entry so we do not have to add top and left to the iframe statement (unless you want to)

let me know if you want me to unaccept this question so it can be treated as a real issue




 

by: radshaw_longerPosted on 2009-10-28 at 08:47:07ID: 25684561

that would be great if it could be fixed.  IF you thing it can unaccept it and move forward for it I am game, or I can open a new question

 

by: mplungjanPosted on 2009-10-28 at 09:14:30ID: 25684867

Can you ask them to remove that css statement?

If not I will have a look at how to change it from your CSS outside the iframe like I just did but without the iframe moving to the top of the page

 

by: radshaw_longerPosted on 2009-10-28 at 13:48:40ID: 25688176

Probably will not be able to get them to remove the css statement.  

 

by: mplungjanPosted on 2009-10-29 at 00:00:46ID: 25691177

Solution #1

<iframe src="about:blank" name="leader" align="middle" scrolling="Yes" frameborder="1" id="leader" style="height: 450px; width: 900px;" title="Leader Resources" longdesc="Leader Resources"></iframe>


window.onload=function() {
  window.frames[0].document.write(
'<html>\
<head>\
<style>\
*{margin:0}\
</style>\
</head>\
<body scroll="no">\
<iframe src="http://www.scouting.org/scoutsource/CubScouts/Leaders.aspx" style="width:100%; height:100%;" onload="this.style.position=\'absolute\'"></iframe>\
</body>\
</html>'
)
  window.frames[0].document.close();
 
}
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:

Select allOpen in new window

 

by: mplungjanPosted on 2009-10-29 at 00:01:59ID: 25691181

solution #2 (better I think)


<iframe src="x.html" name="leader" align="middle" scrolling="Yes" frameborder="1" id="leader" style="height: 450px; width: 900px;" title="Leader Resources" longdesc="Leader Resources"></iframe>


have this html in x.html

<html>
<head>
<style>
*{margin:0}
</style>
</head>
<body scroll="no">
<iframe src="http://www.scouting.org/scoutsource/CubScouts/Leaders.aspx" style="width:100%; height:100%;" onload="this.style.position='absolute'"></iframe>
</body>
</html>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:

Select allOpen in new window

 

by: radshaw_longerPosted on 2009-10-29 at 13:59:46ID: 25698208

It did not work.

 

by: mplungjanPosted on 2009-10-29 at 22:57:38ID: 25700432


It works for me in Ie 6 on xp from harddisk and using your site as base href. Did you try both solutions and from both server and local and what browser and what platform

 

by: mplungjanPosted on 2009-10-29 at 22:59:10ID: 25700434

Did you clear your cache? Did you get errors?

 

by: mplungjanPosted on 2009-10-30 at 00:33:29ID: 25700737

 

by: elvin66Posted on 2009-10-30 at 00:53:34ID: 25700812

mplungjan:

Not worth losing your cool over a question buddy so ease up a little. Sometimes people need baby steps and that's not being rude to the author, it's just a fact. If you're getting a little frustrated might be best to leave this one as closed and move on. Just my 2 cents worth - not trying to make waves here.

 

by: mplungjanPosted on 2009-10-30 at 01:41:10ID: 25701006

Point taken, comment toned down.

 

by: elvin66Posted on 2009-10-30 at 01:45:44ID: 25701021

That's excellent and also why you're a sage in rank. your experience is invaluable on EE. thanks

 

by: radshaw_longerPosted on 2009-10-30 at 15:27:19ID: 25707189

Here is what I get when I click your link.  Sorry for the delay.  Cleared cache and tried the other solutions.  All result the same see attached photo

 

by: radshaw_longerPosted on 2009-10-30 at 15:29:27ID: 25707195

Also the link that you sent on your test site creates dbl scrollbars in Opera, Safari, and Firefox.  

 

by: radshaw_longerPosted on 2009-10-30 at 15:31:45ID: 25707203

Also cleared cache.  The machines that are having trouble is a Vista machine with IE7 and a Win 7 machine with IE 8.  I have changed the iframe options under the misc. section of the security settings on the box that I just sent you the screen capture on.  It was one of the first things I checked.   I may scrap the iframe if it ends up being an option on the workstation that needs to be fixed.

 

by: elvin66Posted on 2009-10-30 at 15:35:39ID: 25707218

If it helps any, when I was trying to test it on my end with IE I tested on an XP machine service pack 3 with IE6 and got the same result as you see in the above photo...actually I didn't even get the border, just a blank spot on the page. If I highlighted the page you could see the shape of the Iframe but that's it.

It just seems a little strange that we could put most other pages in there and they displayed fine, it was just the .aspx page that wouldn't display.

 

by: radshaw_longerPosted on 2009-10-30 at 16:15:41ID: 25707382

that is the same result that I have had. I can view almost any other page type in an iframe with not troubles but this one has me stumped, but I am close to just putting hyper links to their pages.  We are just a local pack of the cub scouts, and was looking at the iframe method of a way that we would automatically get all updates and changes without much effort.

 

by: mplungjanPosted on 2009-10-31 at 00:02:11ID: 25708754

It is due to the CSS in their page which for some IE buggy reason interferes with the page

My code works perfectly in IE6 on XP
I think if we add a setTimeout it might work in IE7/8 too since I see the frame briefly and then it goes away

 

by: elvin66Posted on 2009-10-31 at 06:13:32ID: 25709623

Well I am bowing out of this one now. It is going on and on without a clear resolution and I can offer no more so I wish the author good luck and I'm not bitter about losing the points but I do wish you luck with this problem. I think it is an IE issue though.


Regards to all
Mark

 

by: radshaw_longerPosted on 2009-11-03 at 11:06:02ID: 31646657

Seems to be an issue with the source page trying to pull into the iframe.  I really appreciate all who helped.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...