Finding the right callback function
Finding the right callback function
So what I'm doing seems a little complex, but I'll go through the steps.
1. I use sAjaxSource to populate my table with json data.
2. I use a fnRender function on two of the columns to wrap the content in a that limits the height of the table cell (via CSS)
3. After rendering the columns in this I need to do some jQuery processing on each of those elements (using the class I created in step 2). For example: $('.heighLimit').myfunction( )
The problem I have is that I need to execute step 3 at the end of step 2. Is there a callback available that will let me trigger this? The elements that I need to use for the jQuery function don't exist until after the rendering is done in my fnRender function. Maybe a callback for when the entire table is drawn?
1. I use sAjaxSource to populate my table with json data.
2. I use a fnRender function on two of the columns to wrap the content in a that limits the height of the table cell (via CSS)
3. After rendering the columns in this I need to do some jQuery processing on each of those elements (using the class I created in step 2). For example: $('.heighLimit').myfunction( )
The problem I have is that I need to execute step 3 at the end of step 2. Is there a callback available that will let me trigger this? The elements that I need to use for the jQuery function don't exist until after the rendering is done in my fnRender function. Maybe a callback for when the entire table is drawn?
This discussion has been closed.
Replies
Allan