•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 456,490 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,707 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2999 | Replies: 1
![]() |
•
•
Join Date: Sep 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Can anyone pls help figure out where i am going wrong with the following code:
[function printPDF(){
popWin = window.open('subsoffer.pdf','popUp','top=0,left=0,height=700,width=1000, resizable=yes, scrollbars=0, menubar=0');
popWin.focus();
setTimeout("popWin.print();",5000);
}]
This function printPDF() is invoked when through the onclick event applyed to <td>.
So far a PDF is opened as a popup and a print dialog window is also opened soon after the PDF window. This is what i want but it only works in firefox and not in IE 7.In IE 7 the PDF popup is opened but the print dialog is not opened, instead i get a Permission denied error in IE 7. What could be causing this? You help so much appreciated
[function printPDF(){
popWin = window.open('subsoffer.pdf','popUp','top=0,left=0,height=700,width=1000, resizable=yes, scrollbars=0, menubar=0');
popWin.focus();
setTimeout("popWin.print();",5000);
}]
This function printPDF() is invoked when through the onclick event applyed to <td>.
So far a PDF is opened as a popup and a print dialog window is also opened soon after the PDF window. This is what i want but it only works in firefox and not in IE 7.In IE 7 the PDF popup is opened but the print dialog is not opened, instead i get a Permission denied error in IE 7. What could be causing this? You help so much appreciated
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
- permission denied error (ASP)
- Error: uncaught exception: Permission denied to call method XMLHttpRequest.open (HTML and CSS)
- IE6 not permitting window.close() or window.focus() - any ideas (HTML and CSS)
- ActiveX DLL - Permission Denied Error (Visual Basic 4 / 5 / 6)
- Control Child Window After parent refresh W/O Frames (HTML and CSS)
- Calling function in a child window from main parent window (C#)
- one line code request, closing the active child window (C#)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: AJAX generated <select> and FIREFOX
- Next Thread: Basic Drop-down date picker



Linear Mode