goose2009
Forum Replies Created
-
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Search when enter key is pressedThanks Tobias! It works perfectly.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Search when enter key is pressedThanks Tobias!!
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Search when enter key is pressedThanks Tobias! I might be doing it wrong, but when I add the code to my functions.php, the search box and pagination go away. Do you know why that might be happening?
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Search when enter key is pressedThanks for the reply, Tobias! I found it at this link:
I also see it mentioned here, with an else method. Would that disable the on the fly search?
IF: $("div.dataTables_filter input").keyup( function (e) { if (e.keyCode == 13) { oTable.fnFilter( this.value ) ); } } ); ELSE: $(document).ready(function() { var oTable = $('#test').dataTable( { "bPaginate": true, "bLengthChange": true, "bFilter": true, "bSort": true, "bInfo": true, "bAutoWidth": true } ); $('#test_filter input').unbind(); $('#test_filter input').bind('keyup', function(e) { if(e.keyCode == 13) { oTable.fnFilter(this.value); } }); } );
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Thanks so much for all your help, and for creating such a great plugin!
works great, thanks!
One more question. I’m also using the command you referenced in another discussion to hide a column, but still make it searchable:
“aoColumnDefs”: [ { “bVisible”: false, “aTargets”: [ 4] } ]
How would I utilize both of these at the same time? I can get them both to work when used alone, but when I input both into the custom commands field, The search bar goes away and neither of the commands work.
Thanks!
Thanks Tobias!!
It works great! In one column of the table I have the mb.miniAudioPlayer that plays an mp3 in an html5 player whenever you post a link to an mp3 file. It works fine in the table when I’m not using the inverted filter, but they just show up as links when I do use the filter. Any thoughts on how I might get it to show back up?
Thanks again so much!
Thanks Tobias! Checking this out now.