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 > Other Topics > 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
Mac Elite
Join Date: Nov 2006
Location: here
Status: Offline
Reply With Quote
Feb 8, 2009, 02:58 AM
 
(deleted)
(Last edited by Veltliner; Feb 8, 2009 at 03:14 PM. )
     
Mac Elite
Join Date: Nov 2006
Location: here
Status: Offline
Reply With Quote
Feb 11, 2009, 01: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 Elite
Join Date: Mar 2007
Location: WI, United States
Status: Offline
Reply With Quote
Feb 11, 2009, 11:18 AM
 
I've had crap luck with iFrames in Safari. I'm surprised Firefox was your problem. Anyways, good to hear you got it working.
12" iBook G4 / Tiger 10.4.11 / 1.2 GHz PowerPC G4 / 512 MB RAM / 30 GB HD / 32 MB Radeon 9200
22" WS / Vista Home Premium SP1 32-Bit / 2.4 GHz Core 2 Quad / 3 GB RAM / 500 GB HD / 512 MB Radeon HD 4850
iPod touch 2G / Version 3.0 / 8 GB
     
Addicted to MacNN
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
Feb 13, 2009, 06: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]
     
   
Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:23 PM.
All contents of these forums © 1995-2009 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.4 © 2000-2009, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2