Strange issue with fnRender/fnRowcallback

Strange issue with fnRender/fnRowcallback

DaveGYNWADaveGYNWA Posts: 10Questions: 0Answers: 0
edited September 2012 in DataTables 1.9
Hi all,

Working on integrating datatables (best jquery plugin I've come across) into an existing application, and trying to take advantage of fnRender and fnRowcallback to activate some icons in the first column of a table...these icons will then ultimately be linked to some ajax calls to perform actions.

I've created sample code at http://jsbin.com/uwivor/4/edit for review.

Basically....load up the page, and click one of the icons in the first column. Perfect - the result is an alert box with the action to be performed.

Now it gets strange....type w into the search box, then click the icons again -> 2 alerts
type wo into the search box, then click the icons again -> 3 alerts
and so on....

Clearing the search box out doesn't return it back to normal (1 alert) either.

Been battling this one all day today, and I am stumped - would really appreciate any guidance on this one.

Replies

  • DaveGYNWADaveGYNWA Posts: 10Questions: 0Answers: 0
    edited September 2012
    Sorted this out by removing the span on click function out of the datatables activation's fnrowcallback event, and placing it outside the activation, and moving to a live instead of on.

    http://jsbin.com/uwivor/5/edit
This discussion has been closed.