How i can use this code plis...

How i can use this code plis...

deribor01deribor01 Posts: 2Questions: 0Answers: 0

hello guys, i need help witch this code plis.

/* 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 );
}
 });

this code is of the user sanyika for key navigation.
i already put the code in the jquery.datatables.js.

but i dont know how to call to mi table or use in my html page,
can anyone plis tell my how i can use this code and call to my main page plis.
the id of my table is tableid = cruceya.

tranks very much.

This discussion has been closed.