who intercepts the event dblclick

who intercepts the event dblclick

izumovizumov Posts: 178Questions: 14Answers: 0
edited May 2019 in Free community support

initiation code

$(document).ready(function()

    {
    $('#clients').DataTable( {  
         "order": [[ 0, "desc" ]],
         select: true, 
         scrollY: true, 
         scrollX:true, 
         "sRowSelect": "single",
        "processing": true, 
        "bPaginate": true,
        "bSort": true,
        "serverSide": true,
        "autoWidth":true,
        // "ajax": "proc.php"
        "ajax": "server_processingclients011.php"

    ;

    } );
    $('#clients tbody').on('dblclick', 'tr', function () {
        var table =$('#clients').DataTable();
        var data = table.row( this ).data();
        document.location.href="http://localhost/client15.html?id="+data[0];

    } ); 
     });

but the handler doesn't work .What's the matter?How to get the code to work correctly?

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598
    edited May 2019

    Hi @izumov ,

    Works for me here. Could you look at that, please, and see if it helps. If it's still not working for you, please can you update my example so that we can see the problem.

    Cheers,

    Colin

  • izumovizumov Posts: 178Questions: 14Answers: 0

    Thanks.I found a mistake in my something. Fixed it and now everything works correctly. Hurray!

This discussion has been closed.