Question : IE 7 & 8 Javascript error

I am working on an application in a mixed environment with Apple and Windows computers and I am trying to get all of the functionality of my system to work on all of the available browsers which I can figure out for the most part but this one has stumped me.

I have a document written using dreamweaver called index.cfm (ColdFusion)
On that document I have a table with two <tr>'s - one fixed and the other a standard <tr>

In all other browsers - Safari, Firefox, Opera on both Mac and Windows platforms - my script works perfectly and re-sizes the header that is fixed so that it matches the <tr> underneath and the fixed row remains at the top of the page.

I've also tried using the tag style='position:absolute;' in the fixed header row but I continue to get the same error.

For some reason in IE 7 & 8 the javascript returns the following error:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)
Timestamp: Tue, 13 Jul 2010 18:38:02 UTC


Message: Object doesn't support this property or method
Line: 13
Char: 2
Code: 0
URI: http://192.168.100.166/DSN/CF/Accounting/


1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Accounting Reports</title>
<script language="javascript" type="text/javascript">
function resize_headers() {
	hdrrwOne = document.getElementById('hdrrwOne');
	hdrrwTwo = document.getElementById('hdrrwTwo');
	for (i=0;i<hdrrwOne.cells.length;i=i+1) {
		hdrrwOne.cells[i].style.width=hdrrwTwo.cells[i].offsetWidth+5+'px';
	}
}
window.onload=resize_headers;
window.onresize=resize_headers;
</script>

	<table id="accounting_ledger" width="100%" cellpadding="3" cellspacing="0" border="0">
    	<tr id="hdrrwOne" name="hdrrwOne" class="bold_10pt_black" valign="bottom" style="position:fixed;" bgcolor="CCCCCC">
            <td>Account</td>
            <td>Decription</td>
            <td>Type</td>
            <cfset This_Month_Display = DateFormat("#this_month#/1/#this_year#","mmm") >
            <td id="month_win_#this_month#" onmouseover="month_win_open('#this_month#','#This_Month_Display#');"><a href="month_end.cfm?this_month=#this_month#">#This_Month_Display#</a></td>
            <cfset current_month = this_month>
            <cfloop from="1" to="#(this_month - 1)#" index="x"><cfset current_month -= 1>
            <cfset cur_month_displ = DateFormat("#current_month#/1/#this_year#","mmm")>
            	<td id="month_win_#current_month#" onmouseover="month_win_open('#current_month#','#cur_month_displ#');"><a href="month_end.cfm?this_month=#current_month#">#cur_month_displ#</a></td>
            </cfloop>
            <td>#this_year#</td>
            <td>#last_year#</td>
        </tr>
    	<tr id="hdrrwTwo" name="hdrrwTwo" class="bold_10pt_black" valign="bottom">
        	<td>Account</td>
            <td>Decription</td>
            <td>Type</td>
            <td>#DateFormat("#this_month#/1/#this_year#","mmm")#</td>
            <cfset current_month = this_month>
            <cfloop from="1" to="#(this_month - 1)#" index="x"><cfset current_month -= 1>
            <cfset cur_month_displ = DateFormat("#current_month#/1/#this_year#","mmm")>
            	<td>#cur_month_displ#</td>
            </cfloop>
            <td>#this_year#</td>
            <td>#last_year#</td>
        </tr>
        <cfloop my accounting query here>
            <tr for loop>
                <td information containers></td>
            </tr>
        </cfloop>
    </table>

Answer : IE 7 & 8 Javascript error

Have you checked the settings on VSS? Go to My Computer, Right click on teh C: and go to previous versions. Are there a bunch of previous versions or is it creating these too often or too large?
Random Solutions  
 
programming4us programming4us