I managed to use the Javascript supplied in the Proven Practices section of the Cognos Support Site to freeze the headers of some long list reports I have. My problem is that I want to be able to use variable widths on the report instead of static widths. Currently when I am using the following code:
<div name=scrollList id=list1
style="width:400;height:450;overflow:auto"
onScroll='freezePane.updateScroll(this)';>
But I want to be able to set the width to a certain %. The problem is when I do this and resize the window, the headers get all screwed up. Is anyone familiar enough with Javascript in order to help me? Is there a way to make it so that upon resize, it will reinitialize this script and take a new snapshot of the header?
The js file is attached for reference.
Tim
I think I figured out what I need to do, but I'm not sure how to do it (I really don't know javascript at all). Can anyone tell me how I can clear out the header that is created on the first scroll event? If I can do that I should be able to get it to reinitialize. Thanks.
Tim