|
Posted by news on March 9, 2005, 10:50 pm
Please log in for more thread options
I'm working on a new site for my wife's college art organization:
http://www.ie-studios.net/mci/ and I'm having a problem where a PDF in an IFrame is supposed to go
"invisible" (and in fact is supposed to be hidden by default) but it's
always there.
I already validated the page with w3c.org and it's OK with it.
I know layers and iframes aren't good ideas. But, layers is the best I
could come up with to do what they want with overlaps (I'm sure some
CSS way would be better, but I need this done fast and I don't know CSS
very well.)
And iframe is the only way I could come up with to have a PDF show in a
layer.
Any alternatives would indeed be appreciated, as is any advice. =)
Thanks!
Liam
|
|
Posted by phil_gg04 on March 10, 2005, 5:43 am
Please log in for more thread options
> a PDF in an IFrame is supposed to go
> "invisible" (and in fact is supposed to be hidden by default) but
it's
> always there.
I think that strictly this is a browser bug, but I believe it is one
that they all have. Things handled by plugins do not cooperate with
other page elements in terms of z-index etc. Furthermore in some
browsers the PDF will not be embedded at all and you'll get a offer to
save it to disk (I've just tried it in Opera). PDF is not suitable for
this situation; use HTML.
--Phil.
|
|
Posted by me on March 10, 2005, 9:50 am
Please log in for more thread options
> I'm working on a new site for my wife's college art organization:
> http://www.ie-studios.net/mci/ > and I'm having a problem where a PDF in an IFrame is supposed to go
> "invisible" (and in fact is supposed to be hidden by default) but it's
> always there.
>
> I already validated the page with w3c.org and it's OK with it.
> I know layers and iframes aren't good ideas. But, layers is the best I
> could come up with to do what they want with overlaps (I'm sure some
> CSS way would be better, but I need this done fast and I don't know CSS
> very well.)
> And iframe is the only way I could come up with to have a PDF show in a
> layer.
>
> Any alternatives would indeed be appreciated, as is any advice. =)
>
> Thanks!
> Liam
My browser may be configured to only open PDF's in their own window, I don't
remember. I've never seen a pdf displayed in the way you're attempting.
Usually (always?) there's just a link and the PDF opens in it's own window.
The PDF is invisible to me in IE6. This is because you have set visibility
for that div to hidden. If you want the div (aka layer) to become visible
you will have to use DW to assign some behavior to it or just set it to
visible if that's what you want.
Incidentally I did pull up the contest rules manually and 4/18 is just
around the corner so you better hurry up and finish that page!
Good Luck,
me
|
|
Posted by Martin! on March 10, 2005, 1:07 pm
Please log in for more thread options
news@celticbear.com wrote:
> I'm working on a new site for my wife's college art organization:
> http://www.ie-studios.net/mci/ > and I'm having a problem where a PDF in an IFrame is supposed to go
> "invisible" (and in fact is supposed to be hidden by default) but it's
> always there.
>
> I already validated the page with w3c.org and it's OK with it.
> I know layers and iframes aren't good ideas. But, layers is the best I
> could come up with to do what they want with overlaps (I'm sure some
> CSS way would be better, but I need this done fast and I don't know CSS
> very well.)
> And iframe is the only way I could come up with to have a PDF show in a
> layer.
>
> Any alternatives would indeed be appreciated, as is any advice. =)
>
> Thanks!
> Liam
>
i dont know much about iframes but i dont think you can hide them by
wrapping it into a invisible div (just my 2 ct)
z-index is also deprecated (3 ct)
btw .. nice comment you inserted :
<quote>If you can read this, you have an old browser! Update for
goodness sake! Or, you have inline frames (iframes) turned off. There's
no reason for that. Go into your options and turn IFrames back on.
</quote>
|
|
Posted by Steve Pugh on March 10, 2005, 12:59 pm
Please log in for more thread options
>news@celticbear.com wrote:
>> I'm working on a new site for my wife's college art organization:
>> http://www.ie-studios.net/mci/ >> and I'm having a problem where a PDF in an IFrame is supposed to go
>> "invisible" (and in fact is supposed to be hidden by default) but it's
>> always there.
The PDF is being displayed by a separate application, not by the
browser. The fact that it's embedded in the page (for some users
depending on browser, plugins, and configuration - for me the PDF
opens in a normal Acrobat Reader window leaving a very empty looking
web page) makes no difference. Often items that are displayed with a
separate application are layered on top of the page and are hence hard
to hide.
That said the iframe containing the PDF hides and unhides perfectly
okay in IE6 and Opera (though in Opera it's a blank white square - the
PDF having already opened in a Acrobat Reader window). I guess that
you're problem is with Gecko browsers?
>> I already validated the page with w3c.org and it's OK with it.
>> I know layers and iframes aren't good ideas. But, layers is the best I
>> could come up with to do what they want with overlaps (I'm sure some
>> CSS way would be better, but I need this done fast and I don't know CSS
>> very well.)
>> And iframe is the only way I could come up with to have a PDF show in a
>> layer.
>> Any alternatives would indeed be appreciated, as is any advice. =)
Convert the contents of the PDF to HTML.
Or make the link to the PDF a proper link and let it load normally
(open a new window if you really must but remember that this will lead
to a blank window for people who have their browsers configured to
always save PDFs or display them in a separate application window).
And add some alt attributes. At the moment your page is totally blank.
>i dont know much about iframes but i dont think you can hide them by
>wrapping it into a invisible div (just my 2 ct)
You can, if the iframe contained a web page rather than something that
required an external application then it could be hidden in Gecko as
well as in IE and Opera.
>z-index is also deprecated (3 ct)
Source?
>btw .. nice comment you inserted :
><quote>If you can read this, you have an old browser! Update for
>goodness sake! Or, you have inline frames (iframes) turned off. There's
>no reason for that. Go into your options and turn IFrames back on.
></quote>
Yep, very nice. Nice display of ignorance and arrogrance bundled into
one.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
|
| Similar Threads | Posted | | Hiding sources | September 27, 2004, 11:38 am |
| Hiding an anchor tag | September 1, 2006, 1:31 am |
| Hiding a link's URL | February 1, 2007, 3:16 pm |
| Overflow Hidden not hiding in IE | May 8, 2006, 11:44 am |
| Hiding the label of a select menu... | July 15, 2005, 5:45 pm |
| No B.S this guy shows the Coolest SEO trick i've seen in a While... | January 18, 2008, 5:37 pm |
| IE shows alt-text as kind of a mouse-over | November 23, 2004, 11:06 pm |
| Javascipt code shows up in Firefox... | January 4, 2007, 12:19 pm |
| Dynamically showing and hiding browser supplied scrollbars | November 11, 2005, 1:47 pm |
| Converting PDF documents to online slide shows. | November 27, 2004, 10:52 am |
|