How to set events after a datatable ajax-load?

How to set events after a datatable ajax-load?

bordseniusbordsenius Posts: 5Questions: 0Answers: 0
edited September 2011 in General
I'm loading a few thousand lines into datatables with ajax. Some of the content is html, and I want to bind the elements with jQuery .onmouseover when the page is loaded and datatables has loaded the ajax content.

Is there a "sucess"-function in the ajax-loader that I can use, I need to know when the page has been loaded completely to be able to bind the page-elements? Or is there another way of doing this in datatables?

I do not want a simple helptext/tooltip, I need to eb able to run a rater long javascript.

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    http://www.datatables.net/ref#callback

    look into fnDrawCallback

    you could also use the fnRowCallback if you want to do things per row.
  • bordseniusbordsenius Posts: 5Questions: 0Answers: 0
    Excellent. Thanks for the help!
This discussion has been closed.