Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
| Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 20th, 2007, 02:41 AM
Registered User
 
Join Date: Sep 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting a permission denied error in IE 7

Can anyone please help figure out where i am going wrong with the following javascript 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? Your help is so much appreciated

  #2 (permalink)  
Old September 20th, 2007, 08:26 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

It may not be possible, IE has tightened up a lot of potential security holes. Try specifying the full path to the pdf, e.g. http://myServer.com/.... Also the protocol must match the parent page, so if the parent is delivered via https then the PDF will also have to be.
(Plese post questions once only.)

--

Joe (Microsoft MVP - XML)


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error no 70 Permission Denied rupakroy5 Pro VB 6 5 October 7th, 2006 01:26 AM
Permission Denied Error interrupt Javascript How-To 6 October 15th, 2004 05:26 AM
IE - Runtime error - Permission Denied bstone VB How-To 2 September 11th, 2004 02:21 AM
Permission Denied Error in VBA ebalch24 Access VBA 3 April 12th, 2004 06:51 PM
Error 70: Permission denied junglem@n VB How-To 2 April 3rd, 2004 03:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.