anag

anag

About

Username
anag
Joined
Visits
42
Last Active
Roles
Member
Posts
47

Replies

  • This question is related to jquery in general not datatables. You can search for jquery how to get input value on stackoverflow and you'll see lots of examples of how to get an inputs value
  • This forum is meant to ask questions about datatables, not 3rd party plugins. Yes that website uses datatables but you're asking about the charting library they use at hte bottom. Did you check the source, or search the source code for the word char…
  • Just taking a guess but could you capture that lengthy URL above in beforeSend and return your shorter URL to post with AJAX?
  • The only class in my tables which applies the up down carrot is .sorting try deleting that from your source in dev tools and see what's causing the extra sort icons to appear. If you can post a live example on jsfiddle or some place that would help …
  • Inspect the sort indicator using chrome dev tools or a similar program, actually just paste us the entire th cell's HTML
  • Load your custom css file lower than datatables CSS and place !important in your styles. Or remove !important from datatables CSS. !important is only used a very small amount of times in dataTables.jqueryui.css so just overwrite with your own CSS o…
    in jQuery UI CSS Comment by anag July 2
  • Use State Saving, it saves that information http://www.datatables.net/examples/basic_init/state_save.html
  • Also in sendemail.php if you echo the variable you're sending. In developer tool on the Network tab select that file after you make the AJAX request, you can then view the response and see if it's been sent correctly and received.
  • Use console.log(thehtml) to debug, do you see the div's html in your console debugger? $('#expenses').on( 'draw.dt', function () { thehtml = $( "#expensesdiv" ).html(); console.log(thehtml); });
  • To try and answer your questions "something like one of the table tools buttons that you click" You can create an HTML button and place it above your table, or next to the table tools. Or even inside with them using jQuery. The simplest thing …
  • What Bubble? Can you post your code, and demo. Show a screen shot? Why not put multiple tables on different tabs and initialize each individually. Or you ColVis plugin to hide some columns?
  • Your question is not very clear. First where are you storing the email address? You say you want to send it to datatables, but if it's only sent client side, when the user refreshes it'll be gone, since it's not stored anywhere. Next where are you…
  • This question isn't really related to DataTables. It is Bootstrap's tooltip and placement messing up the table which is working just fine. So you should probably search on stackoverflow. There seem to be related questions when I search bootstrap pos…
  • Use State Saving which will save the length of the table if you leave the page and return it'll remain at the length selected. http://www.datatables.net/examples/basic_init/state_save.html $(document).ready(function() { $('#example').dataTable…
  • Links below are from the current documentation, you should be able to come up with working code if you've coded your own webservice. See: "Get JSON data from a file via Ajax.:" https://datatables.net/reference/option/ajax https://datatables.net/re…
  • Check this answer at Stack Overflow which says it's a working example of jeditable with onkeyup Any working example for Jeditable with onkeyup event? http://stackoverflow.com/a/3411457/804087
  • Your CSS is setting the tables container to a width fixed by pixels, not percentage. Take a look at the flexible table example http://datatables.net/examples/basic_init/flexible_width.html A table to be responsive is just a matter of how CSS styli…
  • If you have a button or link within a cell in a row which is adding a row when clicked similar to the demo at http://datatables.net/examples/api/add_row.html You should be able to modify the add.row function to use jQuery insertAfter or after funct…
  • You'll likely need to unbind the sort event from the headers and bind it to those specific a tags Example legacy code http://datatables.net/forums/discussion/16095/sorting-using-external-buttons-for-asc-and-desc And the newest function reference b…
  • You can retrieve those numbers using the infoCallback function, an example is below which outputs the values to the console. As you filter the table you'll see in the console the end number updates. http://datatables.net/reference/option/infoCallba…
  • I had the same problem with the following code, I wanted my first column to not have sorting available. This code alone did not remove sorting from the first column. It only removed it after any other column was sorted which was strange. columnDef…
  • I've changed my code and it's working but is this the correct syntax? "fnServerData": function ( sSource, aoData, fnCallback, oSettings ) { aoData.push({ "name": "websiteid", "value":'' },{"name":"action","value":'set_alert_dt'} ); oSe…
  • I need to re query the server and get a new json file, I'm deleting and updating records with AJAX so the table has to be updated I assume by making a new call to the json file? What's the build in method in 1.10?
  • I commented out bServerSide, I think fnDraw only works with the data being processed on the server. I ended up using the Ajax Reload plugin. I thought fnDraw worked even without server side processing. Is there another way to redraw my table with…
  • I also want to note that if I comment out bServerSide, it does show 10 rows and paginate correctly, however the fnDraw() functions stop working? //"bServerSide": true, .dataTable().fnDraw();
  • Hi Allan, it turned out the code to initialize the table was in another file and not in the same file as these default settings.
  • Hi Allan, Thanks, this is what I came up with pretty simple but works. Any pros/cons to this method? "fnInitComplete": function () { $('.ColVis').appendTo("#CustomColVis"); }
  • Is it possible this php code is causing the error about columns. It's used when our table is created and also in the ajax refresh code. Depending on a condition we are setting a div class. But the programmer wrapped the entire td element instead of …
  • Thanks this is what i've done and it gives the error "DataTables warning: Added data does not match known number of columns" still losing the pagination and other sdom elements. $("#ajaxchange").click(function(){ var campaign_id = $("#campaig…