Open a3cortes opened 8 years ago
I'm going to need some more info. What plugins are we talking about?
I am using jquery Data table 1.10.11 and jquery 1.9.2 and i am trying to perform ajax call like this on click event.
(function($){ $(document).on('ready', function(){ // Código necesario para ejecutar las acciones usando los iconos $('.action-icon').on('click', function(){ var $next = $(this).next(); // Si es action delete se dispara el on-click if($next.next().hasClass('action-delete')){ $next.next().trigger('click'); } // En otro caso, se toma el atributo href y se redirecciona else{ var href = $next.attr('href'); window.location.href = href; } }); }); })(jQuery);
but if I go to the second page of results, it stops displaying, the actions edit, delete, modified.
This plugin works with datatables version up to 1.9. You'll need to configure the compatibility layer in jquery datatables to send the request using the fields for the legacy version. See https://datatables.net/manual/server-side#Legacy
I would like to include some plugins in my datatable. but if I go to the second page of results, it stops displaying, the actions edit, delete, modified.