Search
18504 results 2761-2770
Forum
- 2nd Mar 2016Beta Testing 1.6.1 AJAX error with too many columns again , how do i resolve the errorIt is very unlikely to - although it is of course impossible to say with absolutely certainty that it won't since I don't know how your server is configured. Allan
- 22nd Feb 2016How do I access the POST parameters in the server side script of an ajax callHi, This sounds like a perfect use case for the PHP library's server-side events. That way you can still fully support multi-row editing and its easy to get the information you want. Regards, Allan
- 15th Feb 2016JQuery DataTables - AJAX loading data, processing window won't disappearsolved
- 16th Jan 2016I have 400 error when accessing ajax.I am using below peace of code and some time its working and some time its give 400 error bad request. $('#example1') .dataTable( { "bProcessing" : true, "bServerSide" : true, "iDisplayLength" : 50, 'bJQueryUI' : true, "bLengthChange" : true, "bDestroy" : true, "bInfo" : true, 'sServerMethod' : "GET", "crossDomain":true, "cache":false, "sAjaxSource" : ctx + '/api/store/test?lookup={"memberNo":"","firstName":"firstname20141201","lastName":"lastname20141201","companyName":"","address":"","email":"","phoneNumber":"","zipCode":"","city":"","state":"","emailExact":"","couponCode":"","month":"","orderNo":"","date":"","repceiptNo":"","taxExemptNo":"","transactionId":"","transactionDate":"","start":"0","end":"500"}', /* "sPaginationType": "full_numbers", */
- 13th Jan 2016Ajax Load DataTable with Paginationhow do I update the row inside createRow function "createdRow" : function( nRow, aData, iDisplayIndex ) { var $row1 = $('td:eq(1)', nRow).find('.progress').eq(0); $.ajax({url: "url",dataType:"json", type:'POST',data:{ data:$data}, success: function(result) { fnUpdate( nRow, false); }, }); },
- 7th Jan 2016Including html/html-like content in data attribute for child row without AJAXThat does work!
- 6th Jan 2016How to pass or render a html in Ajax call?I have something almost identical, so I think I can help! In the initialization, I use the columns option. If I'm not mistaken, aoColumns is the same thing, using legacy nomenclature. My columns for one of my tables looks like this: "columns": [ {"data": "username", "title": "User Name" }, {"data": "homeDirectory", "sortable": false, "title": "Home Directory"}, {"data": null, "sortable": false, "defaultContent": fcapp.render.tools("user"), "createdCell": function (td, cellData, rowData, row, col) { $(td).addClass('toolcell'); } } } ] So, the first two columns contain data found in the JSON, with the keys "username" and then "homeDirectory". The third column contains action buttons like yours. So the difference with this column is that the data attribute has a null value and defaultContent is populated with markup. The method fcapp.render.tools("user") that I supply to defaultContent is just an HTML concatenator and returns a string of HTML. I also add the class "toolcell" to the entire cell in the createdCell callback so that I can potentially bind a click listener to the whole cell instead of the contents, as well as streamline any CSS that goes into that cell.
- 31st Dec 2015Within Ajax, determine which record is in dialogHi Thanks, that works. Peter
- 26th Dec 2015JSON object as a datasource without AJAXWorking! You're awesome :-)
- 10th Nov 2015Ajax Call not working for URL but works for same TextSorry about the double thread btw :/