Selecting all rows triggering IE timeout warning
Selecting all rows triggering IE timeout warning
eflat
Posts: 3Questions: 0Answers: 0
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?
[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?
This discussion has been closed.
Replies
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