YandE
05-29-2004, 07:59 PM
Hi guys, I've run into a perplexing problem I'm hoping somebody can provide some insight into.
I'm in the process of recoding an internal web app I wrote a few years ago (converting asp to php) and cleaning up the html / javascript coding as I go along.
One of the pages I'm working on generates a dynamic table-based report. The table lines would have variable colors depending upon the data they were showing, I set these via font color and bgcolor attributes at the time the page was being generated. I also include a mouseover/mouseout in certain cells that would change the bgcolor for a hilight effect and open up a relevant popup when quicked. The report worked fine.
I've now revised the code to use a linked CSS file and use classes to set the table cell format (again, determined dynamically by the server side scripting when the page is generated), and the mouseover/mouseout events simply change the class for the appropriate effect.
So the new page works properly, except that when I load it in IE (6.0) it is very sluggish when the report generates more than a few table lines (and some of the results can span hundreds of table rows). The page scrolls "choppily", and there's about a 1-2 second delay before the mouseover events trigger a proper class change and creates a hilight effect. I've duplicated the problem on other systems with IE, so I'm ruling out a problem with my local system.
There's no additional script running on the client side on the page, either.
The perplexing thing is that when I load it into Firefox, it works exactly as the original report did (meaning no perceivable problem with performance).
Can anyone think of something I may be doing wrong that would bog down IE's rendering engine? I'm wondering if there are any caveats or rules I'm overlooking when dealing with classes or events in large tables?
Sorry if I'm being vague, I'm trying to keep this post brief (too late?), but any help or advice is appreciated...
Thanks,
KV
I'm in the process of recoding an internal web app I wrote a few years ago (converting asp to php) and cleaning up the html / javascript coding as I go along.
One of the pages I'm working on generates a dynamic table-based report. The table lines would have variable colors depending upon the data they were showing, I set these via font color and bgcolor attributes at the time the page was being generated. I also include a mouseover/mouseout in certain cells that would change the bgcolor for a hilight effect and open up a relevant popup when quicked. The report worked fine.
I've now revised the code to use a linked CSS file and use classes to set the table cell format (again, determined dynamically by the server side scripting when the page is generated), and the mouseover/mouseout events simply change the class for the appropriate effect.
So the new page works properly, except that when I load it in IE (6.0) it is very sluggish when the report generates more than a few table lines (and some of the results can span hundreds of table rows). The page scrolls "choppily", and there's about a 1-2 second delay before the mouseover events trigger a proper class change and creates a hilight effect. I've duplicated the problem on other systems with IE, so I'm ruling out a problem with my local system.
There's no additional script running on the client side on the page, either.
The perplexing thing is that when I load it into Firefox, it works exactly as the original report did (meaning no perceivable problem with performance).
Can anyone think of something I may be doing wrong that would bog down IE's rendering engine? I'm wondering if there are any caveats or rules I'm overlooking when dealing with classes or events in large tables?
Sorry if I'm being vague, I'm trying to keep this post brief (too late?), but any help or advice is appreciated...
Thanks,
KV