I am having a problem getting synchronized scrolling that did work when using DOCTYPE HTML 4.0 Transitional but does not with XHTML 1.0 Transitional.
The scrollbars are not appearing when setting the DOCTYPE to XHTML and the rest of the data in the below divs are hidden.
Here's the code:
<script type="text/javascript">
function window.onload()
{
document.all.divGridCells.onscroll = function(){scrollDiv()};
}
function scrollDiv()
{
var height = document.all.divGridCells.scrollTop;
var width = document.all.divGridCells.scrollLeft;
document.all.divTime.scrollTop = height;
document.all.divTime.scrollLeft= width;
}
function scrollHandlerH(num1,num2,num3)
{
window.status='scrollhandler';
var height = self['iframe' + num1].document.body.scrollTop;
var width = self['iframe' + num1].document.body.scrollLeft;
self['iframe' + num2].document.documentElement.scrollTop = height;
self['iframe' + num3].document.documentElement.scrollLeft= width;
}
function scrollHandlerW(num1,num2,num3)
{
var width = self['iframe' + num1].document.body.scrollLeft;
self['iframe' + num3].document.body.scrollLeft= width;
}
</script>
<table border="0" height="100%" cellpadding="0" cellspacing="1">
<tr>
<td bgcolor="#c0c0c0" valign="bottom" align="left" width="1%" height="10%">
</td>
<td valign="top" align="left" bgcolor="#c0c0c0" width="100%" height="20" >
<picis:RoomAndDateResults id="RoomAndDateResults1" runat="server" />
</td>
</tr>
<tr>
<td width="1%" valign="top" align="left" style="height:99%">
<div id="divTime" style="overflow:hidden;background: #DDDDDD;height:100%">
<picis:TimeResults id="TimeResults1" runat="server" />
</div>
</td>
<td valign="top" align="left" width="100%" style="height:99%">
<div id="divGridCells" style="overflow:auto ; background: #DDDDDD; height:100%" >
<picis:GridResults id="GridResults1" runat="server" />
</div>
</td>
</tr>
</table>
I read this may have something to do with Quirks vs Strict standards but I do not see a resolution. What I need to have happen is synchronized scrolling between 2+ divs that contain user controls.I do need to have the DOCTYPE set to XHMTL so changing that is not an option.
Any help in this would be greatly appreciated. Thanks
Paul

Scrolling problem - DOCTYPE HTML 4.0 Transitional but does not with XHTML 1.0 Transitional