Internet script error

Associate
Joined
6 Jun 2004
Posts
93
Location
London
Hi Guys,

Thanks for taking a look at this! I wonder if anyone can help or suggest something to solve a problem i'm getting with Internet script error!

I've a page with a print page function in Javascript, its been there for years and working fine till lately! Everytime i try and print it give me an "Internet script error"

The error comes up in a popup box with following parameters:

Line: 119
Char: 3
Error: Access denied
Code: 0
Url: file://C:\WINDOWS\help\MCPrintX.htm

I've looked pretty much everywhere on net, but had little luck!
Any help is much appreciated, thanks again in advance!
 
Line 112 to 125 is as follows below!
Code:
function GetRuleFromSelector(strSelector)
{
	var i;
	var oRule;
	var oSS = document.styleSheets[0];
	for (i=0;;i++)
	{
		oRule = oSS.rules[i];
		if (oRule == null)
		break;
		if (oRule.selectorText == strSelector)
		break;
	}
	return oRule;
 
I'm not really sure, how do I find out?

The weird things is I used my office computer the other day and it printed fine! However I working from home and its not working!

I'm not sure if its the progamming or the comfigeration on other machines!
 
There are 2 lots of styles first is as below!

Code:
<STYLE>
.divPage
{
	position: absolute;
	top: -20000px;
	border-left: 1 solid black;
	border-top: 1 solid black;
	border-right: 4 solid black;
	border-bottom: 4 solid black;
}
.page
{
	background: white;
	width: 8.5in;
	height: 11in;
	margin: 0px;
	overflow: hidden;
}
.mRect
{
	position: absolute;
	margin: 1in;
	width: 6.5in;
	height: 9in;
	border: none;
	overflow : hidden;
}
.divHead
{
	position: absolute;
	overflow: hidden;
	top: 0in;
	left: 0in;
	width: 8.5in;
}
.divFoot
{
	position: absolute;
	overflow: hidden;
	bottom: 0in;
	left: 0in;
	width: 8.5in;
}
BODY { overflow: hidden; padding: 0; margin: 0; background: threedface; }
TABLE { margin: 0px; padding: 0px; background: threedface; }
.THeader { border: none; background: white; color: black; }
.TFooter { border: none; background: white; color: black; }
TD { padding: 0; margin: 0; border: none; }
TD.UIPane { width: 20px; border: none; font-family: 'ms sans serif'; font-size: 8pt; }
TD.UISeparator { width: 1px; border-left: 2px threedhighlight ridge; }
BUTTON { border: 1px solid threedface; background: threedface; font-family: 'ms sans serif'; font-size: 8pt; color: buttontext;}
</STYLE>
 
Back
Top Bottom