PDF file won't load in IE

Create issue
Issue #38 on hold
Former user created an issue

Hello Pierre,

I tried to load a PDF file into your great superbox by using the iframe mode.

But it doesn't work :-( The superbox-overlay is displayed all the time.

In Googles Chrome and in Firefox it's ok.

Thank u in advance.

Marcus

Comments (5)

  1. Pierre Bertet repo owner

    Hi, wich plugin are you using to read PDF? Can you send a screenshot, a demo page?

    Thank you.

  2. Former user Account Deleted

    Has this problem been fixed? I have the same problem when trying to open PDF in Iframe in IE8.( i don't know about other versions) Firefox ok. PDF doesn't show but only the overlay does and covering the window. Also on IE8, when I click other superbox links on the same page after showing one superbox, the superbox frame seems like shadowed by the overlay, and cannot see or use properly.

  3. Former user Account Deleted

    Has this problem been fixed? I have the same problem when trying to open PDF in Iframe in IE8.( i don't know about other versions) Firefox ok. PDF doesn't show but only the overlay does and covering the window. Also on IE8, when I click other superbox links on the same page after showing one superbox, the superbox frame seems like shadowed by the overlay, and cannot see or use properly.

  4. Former user Account Deleted

    I solved this. I realized the problem when content was loading is that IE does not open a modal Ok if it is not an STRICT doctype, only transactional. So In my js code I distinguish if is IE the browser, if so, I do make the link to another web page (as a handrail) in this page put: "<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">" at the top so IE would open it ok and then print an iframe with url the original that does not worked for you.

    I put something like this:

    <?php
    
    function urlify($key, $val) {
                return urlencode($key) . '=' . urlencode($val);
    }
    
    $url = 'aux_pdf.php?';
    $url .= implode('&', array_map('urlify', array_keys($_GET), $_GET));
    
    echo '<iframe name="iframePreviewHtml" id="iframePreviewHtml" src="'.$url.'" frameborder="0" scrolling="auto" width="800" height="600"></iframe>';
    
    ?>
    

    The first two lines are only to replicate the request via GET so it is a tween of the original one.

    I know it's not the best solution, is a "hack" but it works...hope solve some time to someone else.

    Sorry my poor english.

    Regards. Sandino. sandinosaso.

  5. Former user Account Deleted

    you just have to change one line

    from

    $iframe.load(function(){
    

    to

    $iframe.ready(function(){
    
  6. Log in to comment