| | |
Getting Permission denied in IE 7 when trying to print from child window
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2007
Posts: 3
Reputation:
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
![]() |
Similar Threads
- 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
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxhelp ajaxjspservlets animate api automatically beta box browser bug calendar captchaformproblem checkbox child class close column cookies createrange() css cursor dependent disablefirebug dom download dropdown editor element engine error events explorer ext file firehose form forms google gwt gxt highlightedword html htmlform ie8 iframe image() images internet java javascript jawascriptruntimeerror jquery jsf jsfile jump libcurl math matrixcaptcha microsoft mimic object onmouseoutdivproblem onreadystatechange parent pdf php player post problem progressbar rated rating regex runtime scroll search security select session shopping size software sql star stars synchronous text textarea twitter validation w3c web website window windowofwords windowsxp wysiwyg xml \n






