Search
18504 results 2921-2930
Forum
- 25th Nov 2014Unable to show loader image before ajax call for dataTableHi, How can I show a loader image before rendering dataTable and hide it after loading has finished. I have tried ajaxStart, ajaxSend, ajaxStop, ajaxComplete, beforesend, complete but nothing seems to work. Please help.......
- 24th Nov 2014Ajax Datatable - Colreoder not working properly with server side processingHi, I am trying to implement the colreoder functionality in my application,where we are fetching the data from server. Reorder happens only for current page, if I moved to next page the header is in same place where as column data gets changed as original position. below are by sample code. var oTable = $('#resulttableSummary').dataTable({ // sDom: 'R<"top"i>rt<"bottom"flp><"clear">', // dom: 'Rlfrtip', //"sDom": 'Rlfrtip', ////"bDestroy":true, "bSort": false, "bProcessing": true, "bServerSide": true, "bJQueryUI": true, "bAutoWidth": false, "bFilter": false, "bLengthChange": false, "bPaginate": true, "bRetrieve": true, "sServerMethod": "POST" "iScrollLoadGap": 50, //50 "iDisplayLength": 150, "bScrollInfinite": true, //"sScrollY": "150px", -- If i enable this even in current page not working "sAjaxSource": CarrierSummaryPath, }); new $.fn.dataTable.ColReorder(oTable); Kindly help me out on this. Thanks in advance.
- 14th Nov 2014Using DataTables with custom data source..not AJAXHi and thank you alot for this incredible work that you ve made available for free! I want to use DataTables with data coming from a Websocket server. So is that possible ? If there is a way to provide DataTables with a Javascript callback that is called each time a page is clicked, a column header is ordered, or a search column is hit, then there I can put my custom logic of making server call along with desired options, then apply the incoming result to the DataTable.. My call to the Webserver will tell how may results are there, how many pages etc.. Thank you in advance for any possible help
- 4th Nov 2014AJAX Server-Side Filtering Issue - WordPress - or - Client-Side load timesThe table I am currently working on is at http://qbhitlist.com/qbhitlist/quarterbacks The overall issue(s) are either if I use client-side the page loads too slow ~12-14s BUT all the sorting and filtering work correctly If I use Server Side the page loads lightening fast, but the filtering (The state, year, and style selects up top do not work (which are a main part of the sites functionality.) The front end code is here, currently running client side http://pastebin.com/S8VFj0PT The backend code is here http://pastebin.com/FNS5d8Ri as you can see I tried using WP's transients to cache the json response, but it had no effect. If there is a way that I could lazy load the json that would be great. But I am also open to working server side as well. My skype is aketchmark if you want to contact me directly
- 10th Oct 2014Getting datatables object in a variable so that I can change the ajax url and reload with new filterI know you can do this with server side processing turned on but that looks too tricky for me right now. So please look at this code. http://jsfiddle.net/o00yLj47/ you will see what isn't working. Any ideas guys? This datatable is in a modal. Behind the modal is a different datatable as well with a different name so I don't think that would cause conflicts.
- 16th Sep 2014__flash__addCallback error with IE9 and AjaxHi everyone, In a particular situation, I have an error with the __flash__addCallback function with IE9. In retracing, I realized part of the problem. In my page, I have a form and when I submit it, I include an HTML table and then instantiates datatable tabletools. Everything goes well until I try to print the page. To reproduce the bug, I have to follow these steps: - Generate a table by submitting the form - Print (ctrl + p) - Generate a new table by submitting the form - Print (ctrl + p) An error stack appears in the console: SCRIPT5007: Unable to set value of the property 'setHandCursor': object is null or undefined SCRIPT5007: Unable to set value of the property 'cleartext': object is null or undefined SCRIPT5007: Unable to set value of the property 'setText': object is null or undefined SCRIPT5007: Unable to set value of the property 'appendText': object is null or undefined SCRIPT5007: Unable to set value of the property 'setFilename': object is null or undefined SCRIPT5007: Unable to set value of the property 'setAction': object is null or undefined SCRIPT5007: Unable to set value of the property 'setCharset': object is null or undefined SCRIPT5007: Unable to set value of the property 'setBomInc': object is null or undefined I realized every time I hacve reinstantiate tabletools, the id of the flash object is incremented (in my case: (ZeroClipboard_TableToolsMovie_1 then ZeroClipboard_TableToolsMovie_2 etc ...). In trying to debug, I realized that __flash__addCallback function attempts to pass back loop all ZeroClipboard_TableToolsMovie id (...) even if they have already been destroyed. I tried several solutions such as running a destroy() on the instance datatable. Would anyone ever had this problem? Thank you for your help DEBUG CODE : http://debug.datatables.net/axuviz
- 8th Aug 2014How to edit previously loaded data (with AJAX) in a DataTableCurrently I'm fetching data from a REST web service with this call that outputs my jsonData, that will be used like this. var t = $('#newAttributes').DataTable({ data: jsonData, columns: [ { data: 'jsonId' }, { data: 'jsonName' }, { data: 'jsonRef' } ], stateSave: true }); Just like here: http://datatables.net/manual/data#Objects I tried it out, and it works perfectly but I cannot change the fields' content. Then, after, I tried filling the input fields "manually", so this was the code I got: var t = $('#newAttributes').DataTable({ stateSave: true }); $('#show_button').on('click', function (args) { for(var i=0;i<args.length;i++){ var obj = args[i]; t.row.add([ '<input type="text" name="id" value="'+ obj['jsonId'] +'"/>', '<input type="text" name="name" value="'+ obj['jsonName'] +'"/>', '<input type="text" name="ref" value="'+ obj['jsonRef'] +'"/>' ]).draw(); ++t.attrId; } }); $('#show_button').click($jsonData); // show_button is hidden This solution was based on other solution I built following this: http://datatables.net/examples/api/form.html And also... it's not working. Does anyone got this issue and solved it? Thank you in advance.
- 6th Aug 2014posting JSON via AJAX results in garbled request payloadI'm attempting to post JSON data to the server and use the JSON in the response to ultimately populate the datatable. However I've experiencing some strange behavior. Using this code: table_config.ajax = { "type": "POST", "url": $(location).attr('pathname'), "data": JSON.stringify({'member_id':2444}), "dataType": "json", "contentType": "application/json", "dataSrc": "results.data" }; I get a 400 HTTP response and the request payload looks like: 0=%7B&1=%22&2=m&3=e&4=m&5=b&6=e&7=r&8=_&9=i&10=d&11=%22&12=%3A&13=2&14=4&15=4&16=4&17=%7D What's going on here?
- 25th Jun 2014Reload table data with Ajax responseI have a datatable which I destroy using ---- table.destroy(), then I reinitialize the entire datatable giving parameter ---- ajax:"new data source", but getting datables.net/tn/7 error. Also tried the following $('#datagrid').dataTable().fnClearTable(); var table = $('#datagrid').DataTable(); table.fnReloadAjax(response); datatable is getting cleared, but not getting reloaded. what am I doing wrong...?
- 25th Jun 2014Ajax object source with dynamic keys and dots.Hi, I build the columns option dynamically in a loop var columnsObj; for (i=0; i<columnsToDisplay.length; i+=1) { columnObj = { "data": columnsToDisplay[i], //CAN HAVE DOTS e.g. "column.a.b" "title": columnsToDisplay[i] }; } Unfortunately these column names often have dots. Datatables by design thinks these are nested objects and gives an unknown parameter requested error. How can I turn of that behaviour or bypass it? I tried this thread but passing my variable into the column does not work. Any suggestions? Thanks