Selecting all rows triggering IE timeout warning

Selecting all rows triggering IE timeout warning

eflateflat Posts: 3Questions: 0Answers: 0
edited March 2012 in DataTables 1.8
I have a table with about 2000 rows and am doing this to select all rows:
[code]
$('#check_all').live( 'click', function () {
$('input', oTable.fnGetNodes()).attr('checked', this.checked);
} );
[/code]
The trouble is that I'm getting a timeout warning from IE7 asking the user if they want to cancel the script because it may be looping infinitely. Is there a better way to be doing that selection?? Is version 1.9 any better?

Btw, Firefox, Chrome and Safari execute this quickly with no problem. But guess what browser my users are largely using?

Replies

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    Ah good old IE7...

    DataTables 1.9 might make it a bit faster, and it will certainly make the API a bit easier:

    [code]
    $('#check_all').live( 'click', function () {
    oTable.$('input').attr('checked', this.checked);
    } );
    [/code]

    Worth a try, but I can't promise that will fix it...

    Allan
This discussion has been closed.