views:

279

answers:

2

with a moderm browser, the jquery datatable plugin works very well but in ie6 i find that its almost impossible to type in teh filter textbox as the keypress filtering is insanely slow so the browser can't keep up with your typing.

is there anyway to change the behavior so that it only searches and filter on enter key compared to every key press?

+1  A: 

Unfortunately, no. But, the library is open source. So, you could try altering the code (you might have some luck with the .keyup event around line 3016)?

smaglio81
A: 

you can do that in this way

$("#myTable input").keypress( function(event){

//do here whatever you want here, ie (restrict minumu caracters in the field equals to 3)

if($("#myTable input").val().lengh > 3)
   $("#myTable input").change(); //necesary for jquery datatables execute his own event functions 
else
   //doNothing

}

Whit this you can restrict the search for a minimun input letters whit the idea of no break down the server whit searchs of just one letter on the search field

Well hope help

Dalí Dávila