Errors Output
- error compiling iepngfix.asp: maybe use strict error: Bareword found where operator expected at /sites/spencer/htdocs/iepngfix.asp line 3, near "// Use"
, /usr/lib/perl5/vendor_perl/5.10.0/Apache/ASP.pm line 1466
Debug Output
- error compiling iepngfix.asp: maybe use strict error: Bareword found where operator expected at /sites/spencer/htdocs/iepngfix.asp line 3, near "// Use"
, /usr/lib/perl5/vendor_perl/5.10.0/Apache/ASP.pm line 1466
Compiled Data with Error
-: package Apache::ASP::Compiles::__ASP__sites_spencer_libx; ;; sub Apache::ASP::Compiles::__ASP__sites_spencer_libx::__ASP__sites_spencer_htdocs_iepngfi__aspxfbcfc9fe9cd1da563a0876ab5c675b82xINC { ;; package Apache::ASP::Compiles::__ASP__sites_spencer_libx; ;; use strict;;;use vars qw($Application $Session $Response $Server $Request);;
-: #line 1 /sites/spencer/htdocs/iepngfix.asp
1: ;;
2:
3: // Use this file in your CSS in place of the .HTC file if it works offline but not online.
4: // It will send the correct MIME type so that IE will execute the script correctly.
5:
6: $r->content_type = "text/x-component";
7:
8: ; &Apache::ASP::WriteRef($main::Response, \('
9: <public:component>
10: <public:attach event="onpropertychange" onevent="iePNGFix(0)" />
11:
12: <script type="text/javascript">
13:
14: // IE5.5+ PNG Alpha Fix v1.0RC5 Preview 5
15: // (c) 2004-2008 Angus Turnbull http://www.twinhelix.com
16:
17: // This is licensed under the GNU LGPL, version 2.1 or later.
18: // For details, see: http://creativecommons.org/licenses/LGPL/2.1/
19:
20:
21: // This must be a path to a blank image, relative to the HTML document(s).
22: // In production use I suggest \'/images/blank.gif\' or similar. That\'s all!
23: if (typeof blankImg == \'undefined\') var blankImg = \'/images/blank.gif\';
24:
25:
26:
27: function filt(s, b)
28: {
29: var f = \'DXImageTransform.Microsoft.AlphaImageLoader\';
30: var sM = (currentStyle.backgroundRepeat == \'no-repeat\') ? \'crop\' : \'scale\';
31: s = (s || \'\').replace(/\\(/g, \'%28\').replace(/\\)/g, \'%29\');
32:
33: if (s && !(/IMG|INPUT/.test(nodeName) && !b) &&
34: currentStyle.width == \'auto\' && currentStyle.height == \'auto\')
35: {
36: style.width = offsetWidth + \'px\';
37: style.height = clientHeight + \'px\';
38: if (currentStyle.display == \'inline\') style.display = \'inline-block\';
39: }
40:
41: if (filters[f])
42: {
43: filters[f].enabled = s ? true : false;
44: if (s) with (filters[f]) { src = s }
45: }
46: else if (s) style.filter = \'progid:\'+f+\'(src="\'+s+\'",sizingMethod="\' + sM + \'")\';
47: }
48:
49: function iePNGFix(init)
50: {
51: if (!/MSIE (5\\.5|6)/.test(navigator.userAgent)) return;
52: var evt = init ? { propertyName: \'src,background\' } : event;
53: var isSrc = /src/.test(evt.propertyName);
54: var isBg = /background/.test(evt.propertyName);
55: var isClass = !init &&
56: ((this.className != this._png_class) && (this.className || this._png_class));
57: if (!(isSrc || isBg || isClass)) return;
58: this._png_class = this.className;
59: var blank = blankImg.match(/([^\\/]+)$/)[1];
60:
61: // Required for Whatever:hover support - erase any set BG if className changes.
62: if (isClass && ((style.backgroundImage.indexOf(\'url(\') == -1) ||
63: (style.backgroundImage.indexOf(blank) > -1)))
64: {
65: setTimeout(function() { this.style.backgroundImage = \'\' }, 0);
66: return;
67: }
68:
69: if (isSrc && this.src && /IMG|INPUT/.test(nodeName))
70: {
71: if ((/\\.png([^\\.]+|$)/i).test(src))
72: {
73: filt(src, 1);
74: src = blankImg;
75: }
76: else if (src.indexOf(blank) == -1) filt();
77: }
78:
79: var bgSrc = currentStyle.backgroundImage || style.backgroundImage;
80: if ((bgSrc + this.src).indexOf(blank) == -1)
81: {
82: var bgPNG = bgSrc.match(/^url[("\']+(.*\\.png[^\\)"\']*)[\\)"\']+[^\\)]*$/i);
83:
84: if (bgPNG)
85: {
86: style.backgroundImage = \'url("\' + blankImg + \'")\';
87: filt(bgPNG[1], 0);
88: // Unclickable elements inside PNG backgrounds.
89: var tags = [\'a\', \'input\', \'select\', \'textarea\', \'iframe\', \'object\'],
90: t = tags.length, tFix = [];
91: while (t--)
92: {
93: var elms = all.tags(tags[t]), e = elms.length;
94: while (e--) tFix.push(elms[e]);
95: }
96: var t = tFix.length;
97: if (t && (/relative|absolute/i).test(currentStyle.position))
98: alert(\'IEPNGFix: Children of positioned element are unclickable:\\n\\n<\' +
99: nodeName + (id && \' id=\' + id) + \'>\');
100: while (t--) tFix[t].style.position = \'relative\';
101: }
102: else filt();
103: }
104: }
105:
106: iePNGFix(1);
107:
108: </script>
109: </public:component>')); ;; }
An error has occured with the Apache::ASP script just run.
If you are the developer working on this script, and cannot work
through this problem, please try researching it at the
Apache::ASP web site,
specifically the FAQ section.
Failing that, check out your
support options, and
if necessary include this debug output with any query.