I am having a webpage that is displaying the data using Datatable plugin in Table tableRepriceResponseFiles. Here I am basically doing the following two things in the Javascript.
1.If the NoOfDays > 7, differentiate the text in Red color
2.Datatable Pagination
The below code is displaying the following Script Error Message.
Stop Running this script? "A Script on this Page is causing your web browser to run slowly. If it continues to run, your computer might become unresponse."
When i comment either of the two below things, then it is not displaying that Script Error Message. But I want to change the text color to Red and apply Pagination.
I am wondering how i can get rid of this message? Any inputs is highly appreciated.
<script type="text/javascript">
$(document).ready(function () {
//If the NoOfDays > 7, differentiate the text in Red color
$('#RepriceResponseFiles td.clsDays').each(function () {
if (parseInt($(this).text()) > 7) {
$(this).css("color", "red");
}
});
//Datatable Pagination
$('#RepriceResponseFiles').dataTable(
{
"sPaginationType": "full_numbers",
"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
"iDisplayLength": 100
});
});
</script>