gehuangyi20 / ie7-js

Automatically exported from code.google.com/p/ie7-js
0 stars 0 forks source link

Error - Print preview in IE #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open a page with the script
2. Click Print Preview in IE6 or IE7
3. A javascript error appear at the bottom left.

What is the expected output? What do you see instead?
No error

What version of the product are you using? On what operating system?
ie8 beta 3

Please provide any additional information below.

Original issue reported on code.google.com by royguill...@gmail.com on 15 Jul 2008 at 8:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I noticed that CSS print media rules seem to be ignored (most likely because of 
the
above js error). "@media print { ... }" does not take effect as demonstrated 
below.

This test fails for me on IE 6.0.2900.XXXXX :
http://ie7-js.googlecode.com/svn/test/print-test.html

Original comment by jcr...@gmail.com on 20 Jul 2008 at 6:19

GoogleCodeExporter commented 9 years ago
This is strange, the print preview styles with "@media print" is working fine 
in my
application. I only have an javascript error after the preview...

The only difference i see between your code and mine is that I do not have the  
@media screen { } tag.

I tested your link and the print preview does not take the style work with IE 
7.0.5730.11

Original comment by royguill...@gmail.com on 22 Jul 2008 at 11:33

GoogleCodeExporter commented 9 years ago
Yes, I agree that the error only shows up when the "Print Preview" is initiated.
However, the test case "@media print" styles are not applied corectly for 
either of 
us.

>> ... working fine in my application
Can you provide us all with a working example where the print styles are 
applied 
correctly?

Thanks,

-Jonathan

Original comment by jcr...@gmail.com on 22 Jul 2008 at 3:24

GoogleCodeExporter commented 9 years ago
I also get the javascript error when using the IE8.js script in IE6, and then
choosing either Print Preview or Print. 

My print styles, which are being applied through a <link> tag, ARE getting 
applied:
<link id="ctl00_printCss" rel="stylesheet" type="text/css" media="print"
href="includes/css/print.css" />

The javascript error I'm getting is (as reported by Companion.JS, along with 
call stack)
Permission denied (line 1089)
* line 1125
* line 1132
* line 1032
* line 215
* line 514

It looks as though IE7 is throwing an error as well. 

Original comment by leombr...@gmail.com on 9 Sep 2009 at 2:49

GoogleCodeExporter commented 9 years ago
This is a duplicate of issue #54.

Original comment by dean.edw...@gmail.com on 12 Feb 2010 at 2:02