Run script after page refresh or data load
Run script after page refresh or data load
ender_wiggin30
Posts: 7Questions: 0Answers: 0
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.