Not trigger a searching when clicked x in search box in IE10
Not trigger a searching when clicked x in search box in IE10
machinarium
Posts: 17Questions: 0Answers: 0
Hi, all,
I am not quite sure about how many of DataTables users would use IE10, but I believe there must be many. In IE10, you will see a x in the right end of one search box, if click x, the content of that search box will be empty. The weird thing is this behavior won't trigger a searching to server side. Actually, there is no x in Chrome and Firefox. I guess there definitely is something to do with IE10's new features or so. However, I could not locate its root cause and find the workaround. I've tested some of the examples of this website and the searching are not triggered either. Anyone has some clues about this?
Best regards,
Arthur Hu
I am not quite sure about how many of DataTables users would use IE10, but I believe there must be many. In IE10, you will see a x in the right end of one search box, if click x, the content of that search box will be empty. The weird thing is this behavior won't trigger a searching to server side. Actually, there is no x in Chrome and Firefox. I guess there definitely is something to do with IE10's new features or so. However, I could not locate its root cause and find the workaround. I've tested some of the examples of this website and the searching are not triggered either. Anyone has some clues about this?
Best regards,
Arthur Hu
This discussion has been closed.
Replies
Allan
There is some discussion about it here: http://blog.clicdata.com/2013/02/28/ie10-how-to-handle-the-search-event/ - and in various other forums / posts.
It looks like the why to handle it is to remove the `X` from the display. Rubbish, but that's the way it goes...
Allan
Arthur
Thanks
I'll look into the cut operation issue.
Allan
Thanks for your reply. And I followed your provided link. The code [code]$input.trigger('cleared')[/code] did not work. It still didn't trigger a searching to server. Is there anything I've missed?
Best regards,
Arthur