Cancel Enter key on search box

Cancel Enter key on search box

valdezrvaldezr Posts: 49Questions: 0Answers: 0
edited February 2010 in General
How to disable the enter key on the sSearch box, becuase when it is pressed, the server side is called and because there is no filter, then gets all the rows but, I do not why, when returns to the client and seeing the json object, the aaData array is [] blank and no row retrieved in the server side, is displayed in the table.

So I need your help to fix this behaviour.
Thanks in advance.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Sounds odd - do you see that behaviour here as well: http://datatables.net/examples/data_sources/server_side.html ? It does cause a 'redraw' (which could be caught by checking for the return key and quitting out - I might do that) - but it doesn't return an empty result set.

    Allan
This discussion has been closed.