Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Art & Graphic Design > iframe works in Safari and Opera, but not in Firefox 3

iframe works in Safari and Opera, but not in Firefox 3
Thread Tools
Veltliner
Mac Elite
Join Date: Nov 2006
Location: here
Status: Offline
Reply With Quote
Feb 8, 2009, 03:58 AM
 
(deleted)
( Last edited by Veltliner; Feb 8, 2009 at 04:14 PM. )
     
Veltliner  (op)
Mac Elite
Join Date: Nov 2006
Location: here
Status: Offline
Reply With Quote
Feb 11, 2009, 02:29 AM
 
I solved that issue.

iframe uses a deprecated property name="....".

So I used id instead, which made the iframe accessible for positioning in CSS.

Safari and Opera were OK with this.

Firefox? No. It broke the iframe element. Instead of opening images in a new window, they were opened on a new page.

I added the name="..." to the id, and now it works in Firefox 3, too.

Funny. There's an element that's "deprecated" by W3, which I understand as "don't use it".

It's like chess: you against the browsers to get them to display your design.
     
Mac User #001
Mac Elite
Join Date: Mar 2007
Location: WI, United States
Status: Offline
Reply With Quote
Feb 11, 2009, 12:18 PM
 
I've had crap luck with iFrames in Safari. I'm surprised Firefox was your problem. Anyways, good to hear you got it working.
I have returned... 2020 MacBook Air - 1.1 GHz Quad-Core i5 - 16 GB RAM
     
Oisín
Moderator Emeritus
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
Feb 13, 2009, 07:33 PM
 
Originally Posted by Veltliner View Post
I added the name="..." to the id, and now it works in Firefox 3, too.

Funny. There's an element that's "deprecated" by W3, which I understand as "don't use it".
It’s formally deprecated and will be removed in the next version of XHTML. The W3 recommends the following:

In XML, URI-references [RFC2396] that end with fragment identifiers of the form "#foo" do not refer to elements with an attribute name="foo"; rather, they refer to elements with an attribute defined to be of type ID, e.g., the id attribute in HTML 4. Many existing HTML clients don't support the use of ID-type attributes in this way, so identical values may be supplied for both of these attributes to ensure maximum forward and backward compatibility (e.g., <a id="foo" name="foo">...</a>). [Emphasis mine]
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 01:35 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,