HighDots Forums  

PDF INTO MSIE POPUP

Javascript JavaScript language (comp.lang.javascript)


Discuss PDF INTO MSIE POPUP in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Paolo
 
Posts: n/a

Default PDF INTO MSIE POPUP - 06-13-2008 , 02:45 AM






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
  #2  
Old   
Álvaro G. Vicario
 
Posts: n/a

Default Re: PDF INTO MSIE POPUP - 06-13-2008 , 06:18 AM






Paolo escribió:
Quote:
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
  #3  
Old   
Paolo
 
Posts: n/a

Default Re: PDF INTO MSIE POPUP - 06-13-2008 , 09:37 AM



""Álvaro G. Vicario""

wrote

Quote:
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
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.