This is a migrated thread and some comments may be shown as answers.

iframe with pdf content crashes IE 8

1 Answer 67 Views
LightBox
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 26 Nov 2013, 06:25 PM
I have a lightbox with an iframe in the item template that loads pdfs from an httphandler.  In chrome this works fine however it completely crashes IE 8 no matter how I attempt to load the pdf up (direct src, another .aspx with iframe content etc...).  An iframe loading the pdf content alone seems to work just fine however.

Here is my lightbox as declared:

Any suggestions?
<telerik:RadLightBox ID="helpFrame" runat="server" Width="1000px"
        Height="730px" Modal="True" ShowNextButton="False" ShowPrevButton="False"
        PreserveCurrentItemTemplates="true" RenderMode="Lightweight" ClientSettings-ClientEvents-OnLoad="helpLoad">
        <ClientSettings>
            <AnimationSettings HideAnimation="Resize" ShowAnimation="Resize" />
        </ClientSettings>
        <Items>
            <telerik:RadLightBoxItem>
                <ItemTemplate>
                    <iframe clientidmode="Static" id="helpIFrame" height="100%" width="100%"></iframe>
                </ItemTemplate>
            </telerik:RadLightBoxItem>
        </Items>
    </telerik:RadLightBox>

1 Answer, 1 is accepted

Sort by
0
Jon
Top achievements
Rank 1
answered on 26 Nov 2013, 10:13 PM
I resolved this by changing the iframe to an <object> which is probably the more elegant solution anyway.

Thanks.
Tags
LightBox
Asked by
Jon
Top achievements
Rank 1
Answers by
Jon
Top achievements
Rank 1
Share this question
or