Search
43826 results 7231-7240
Forum
- 27th Aug 2015DOM initialized table / Export (pdf, excel...) button / stripNewlines optionMy datatable is DOM initialized. Some <td> contains markup block elements (like <div>) and line break elements (<br>). I extend the 'pdf' button with option stripNewlines: false. Newlines are not preserved in exported file Test case: https://jsfiddle.net/nlips/dsy3bwt0/
- 25th Aug 2015Join Table, The select field doesnt responDear Mr. Alan wish you're doing good ! This is my php file respon on browser http://pastie.org/10374065 This is my html code http://pastie.org/10374069 here'is my php code http://pastie.org/10374073 The probles is when I create new entry or edit the option list for Label Id Jabatan doesn do dropdown, and the console say nothing
- 21st Aug 2015keyboard tabstop -1 for table thead but 0 for table bodyHi I want users to click column headings to sort, but bypass them with the tab key to select rows. Any help welcome Thanks G
- 20th Aug 2015TableTools: translation of TABLE COPIED and Copied X rows to the clipboardHello, I would like to ask if can be translated the text displayed in TableTools in the same way is done with .json files? Thanks. Gabriele
- 20th Aug 2015How to filter the table and display only those records which satisfy particular condition?I want to implement if (fileType != X), then only display record else move to another. Following code is already working in present solution and i am bound to update it only. columnDefs: [ {"width": "30%", targets: 0}, {"width": "30%", targets: 1}, {"width": "30%", targets: 2} ], columns: [ {"data": "fileType"}, {"data": "fileName"}, {"data": "fileDate"} ], aoColumnDefs: [ { "aTargets": [ 1 ], "mData": "fileName", "mRender": function ( data, type, full ) { return '<a href="'+full.link+'">'+full.fileName+'</a>'; } }] The functionality is that after Ajax calls, JSON data is received and gets populated using datatables. How can i implement if (fileType != X) in above snippet? Thanks in advance. Sorry tried to format question but unable too.
- 20th Aug 2015Defer load table from external url to reduce bandwidthHello; I am using a jQuery plugin which is datatables, and i use it that way : $('table').DataTable( { "ajax": "table.txt"}); This work fine because the file table.txt is located on the same directory as my javascript script in my hosting directory. But because the file table.txt size is important, this will consume me a lot of bandwidth so the idea i have is to host it in an other location for example a CDN or dropbox and then call it, for example like that: $('table').DataTable( { "ajax": "http://dropbox/cdn/445587215/table.txt"}); But it doesn't work because I think jQuery cannot request files which are located outside of the current running domain name for security reasons, so the idea that come to my mind is to host both the javascript file that make the call to this table.txt file on the same folder on the CDN and then just include the javascript file using the tag like: Do you think that this will work ? or can you advice me for a better approach ? Thank you
- 1st Jul 2015Table tools return "undefined" on url while exportingHello, I have a problem with TableTools on exporting. When I click to the button it return an "undefined" on url and a 404 error. I'm using wordpress. Anyone can help me to fix this truble? ttp://login.todos.it/visualizza-interventi-inseriti/ usr. mario pwd. mariorossi
- 24th Jun 2015Is it possible to use tfoot cells to sort table data?Hello. One of the legacy manuals says the following: "Defining the 'tfoot' section is optional from the view point of DataTables, and if defined will be used in a similar manner to how thead is used, with the exception of not being able to use it to sort data.". And, as far as I can tell, this stays true even for the most recent version of the plugin. So, is there a quick way (such as adding some class definition or setting some option in my js code) to enable sorting function for tfoot cells, the same way it's assigned to thead elements out of box?
- 20th Jun 2015Can't be able to find datatable using .isDataTable in ui tabs with same table IDHi, I have , $(document).on("click", "#" + newCurrentWidgetId + "#add-line-items", function () { NewCurrentWidgetId = getCurrentWidgetId(); if ($.fn.DataTable.isDataTable('#' + NewCurrentWidgetId + ' #item-info-table')) { alert("Present"); } }); This is the case when i append tabs. when i append tabs above script gets loaded in which we have "newCurrentWidgetId " as id of that tab. We can open multiple tabs and "newCurrentWidgetId " changes everytime. Inside that "NewCurrentWidgetId " is returning current opened tab's id which is working well. And at last with every tab append i am also initiating the datatable with it's click function (code above). Now when more then one tab is appended simultaneously the above alert works fine in case of latest tab only. when i switch the tab it cannot find the datatable so no alert is coming. Don't know why. Every variable is changing fine. Need Quick help. Thanks in advance.
- 19th Jun 2015Passing more than one class selector to multiple tables identified byI am trying to implement the code found at http://www.datatables.net/examples/basic_init/multiple_tables.html, which uses the following: <script type="text/javascript"> $(document).ready(function() { $('table.display').dataTable(); } ); </script> ... <table id="" class="display" cellspacing="0" width="100%"> Since the class selector for my personal style is "compact cell-border hover", I tried the following, which consists in assigning my style declaration to a variable and passing it to the class selector, but it does not work. <script type="text/javascript"> var myTableStyle = "compact cell-border hover" $(document).ready(function() { $('table.myTableStyle').dataTable(); } ); </script> ... <table id="" width="100%" class=myTableStyle> To sum up: how does one use the multiple tables feature with a style other than one consisting of a single word?