Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > PDF INTO MSIE POPUP

Reply
Thread Tools

PDF INTO MSIE POPUP

 
 
Paolo
Guest
Posts: n/a
 
      06-13-2008
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,scroll bars=no,resizable=yes,width=450,height=350");}

}



Help please

Thank in advance


 
Reply With Quote
 
 
 
 
Álvaro G. Vicario
Guest
Posts: n/a
 
      06-13-2008
Paolo escribió:
> window.showModalDialog("pdf, null, p);


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



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
 
Reply With Quote
 
 
 
 
Paolo
Guest
Posts: n/a
 
      06-13-2008
""Á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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting 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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert PCL Files into PDF, CCIFF Encoding & Faster XML to PDF Conversion sherazam Java 0 09-26-2011 10:20 AM
Postscript to PDF with pdf-tools, pdf-writer, or other Sean Nakasone Ruby 1 04-14-2008 09:13 PM
PDF::Writer, create pdf and insert in other pdf file. Ricardo Pog Ruby 1 03-26-2008 08:24 PM
Combining PDF and XML files into PDF bill walton Ruby 1 12-03-2006 06:29 PM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM



Advertisments