Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82132

hidden row example works with jQuery 1.8.3 but broken with 1.9.0

$
0
0
Hello,

is anybody else getting the error with the pages built after the example
http://www.datatables.net/release-datatables/examples/server_side/row_details.html


Uncaught TypeError: Object [object Object] has no method 'live'

At the top source code line here?

        $('#my_table tbody td img').live('click', function(){
                var nTr = $(this).parents('tr')[0];
                if (cardsTable.fnIsOpen(nTr)) {
                        this.src = '/images/details_open.png';
                        cardsTable.fnClose(nTr);
                } else {
                        this.src = '/images/details_close.png';
                        cardsTable.fnOpen(nTr, renderGame(cardsTable, nTr), 'details');
                }
        });

I will prepare a simplified test case to demonstrate my problem, but I've decided to ask here in the meantime.

I also wonder, how to debug such issues myself, because I don't understand the output of a

        console.dir($('#my_table tbody td img'));

The webpage in question is the http://preferans.de/DE11198 and the table is #cards_table.

(Sorry, the DataTables debugger fails to upload - from my network location right now)

I had to hardcode CDN jQuery 1.8.3 there for now.

Thanks for any hints
Alex

Viewing all articles
Browse latest Browse all 82132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>