How i can use this code...

How i can use this code...

deribor01deribor01 Posts: 2Questions: 0Answers: 0

hello all, check the forum i already find this of the user sanyika..

/* added left key function */
$().keypress(function (e) {
if (e.keyCode == 37) {
oSettings._iDisplayStart -= oSettings._iDisplayLength;

                /* Correct for underrun */
                if ( oSettings._iDisplayStart < 0 )
                {
                  oSettings._iDisplayStart = 0;
                }

                fnCallbackDraw( oSettings );
}
 });

/* added right key function /
$().keypress(function (e) {
if (e.keyCode == 39) {
/
Make sure we are not over running the display array */
if ( oSettings._iDisplayStart + oSettings._iDisplayLength < oSettings.fnRecordsDisplay() )
{
oSettings._iDisplayStart += oSettings._iDisplayLength;
}

                fnCallbackDraw( oSettings );
}
 });

i already have my table create and all, but i dont know how to call this code to my table for key navigation..
can anyone plis tell my how i can use this code i already put in jquery.datatables.js , i m new in this of js , accept any help thanks.

This discussion has been closed.