PDF INTO MSIE POPUP

Discussion in 'Javascript' started by Paolo, Jun 13, 2008.

  1. Paolo

    Paolo Guest

    Hi at all

    I tryed to show a pdf into a popup but with msie page is blank

    My code:



    var pdf="pdfname.pdf";

    if (pdf!==""){

    var p = "dialogWidth: 480px; dialogHeight: 380px; center: 1; scroll: 1;
    resizable=yes;";

    if (document.all) {

    window.showModalDialog("pdf, null, p);

    }

    else
    {window.open(pdf,"","toolbar=no,location=no,scrollbars=no,resizable=yes,width=450,height=350");}

    }



    Help please

    Thank in advance
    Paolo, Jun 13, 2008
    #1
    1. Advertising

  2. Álvaro G. Vicario, Jun 13, 2008
    #2
    1. Advertising

  3. Paolo

    Paolo Guest

    ""Álvaro G. Vicario""

    wrote

    >> window.showModalDialog("pdf, null, p);

    >
    > Don't you get a JavaScript error due to unmatched quotes?
    >
    >
    >


    sorry for error rewriting my script


    window.showModalDialog(pdf, null, p);



    but it always do not work

    It open a blank page
    Paolo, Jun 13, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bill walton

    Combining PDF and XML files into PDF

    bill walton, Dec 1, 2006, in forum: Ruby
    Replies:
    1
    Views:
    111
    Jeremy Hinegardner
    Dec 3, 2006
  2. Ricardo Pog
    Replies:
    1
    Views:
    398
    Austin Ziegler
    Mar 26, 2008
  3. Sean Nakasone
    Replies:
    1
    Views:
    339
    Farrel Lifson
    Apr 14, 2008
  4. Jens Peter Hansen
    Replies:
    7
    Views:
    499
    Randy Webb
    Jun 19, 2004
Loading...

Share This Page