Run script after page refresh or data load
Run script after page refresh or data load
![ender_wiggin30](https://secure.gravatar.com/avatar/e8e2f7e4c454acfe11d98d8d92719e4b/?default=https%3A%2F%2Fvanillicon.com%2Fe8e2f7e4c454acfe11d98d8d92719e4b_200.png&rating=g&size=120)
I am using json to populate my table. For certain columns, I have defined hooks to be triggered to display a jquery-ui dialog, datepicker. This all works great if I hook them inside a global ajax complete in jquery. It does not work in IE 8. I am looking for a function that I can call that will let me hook to the dom elements after they got rendered. Is there a such thing ? Is this possible with datatables ? Thanks.
This discussion has been closed.
Replies
[code]
$(window).bind('resize', function () { oTable.fnAdjustColumnSizing(); } );
[/code]
When I add this javascript to resize the table, IE 8 stops working and I can no longer click. Refresh solves problem but initial load again creates the problem. I am wondering if anyone saw this problem. For hooking, I went with hooking it into tbody element since it never gets destroyed.
Does anyone know why the above line causes problems. When I have time, I will convert to the on method. Using 1.7.2.