How to fire repeater table onresize event?
Web Development
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I use repeater to list data from database. Once the repeater is populated, I want to get the column width for each column in the repeater table in javascript function. I am trying to do in table's onresize event. The code is shown as below: ... function getColumnWidth() { alert("List the width of each table column"); //get the width of column and do something }
Field1 value
Field2 value
Field3 value
... However, onresize event doesn't fire at all. If I use onmousemove, instead of onresize, the javascript function getColumnWidth() will get executed. But if the page is loaded, but the user doesn't move the mouse, then the javascript function will not be able to executed. Does anyone know what I need to do to make it work? Thanks in advance!