Search
18435 results 2861-2870
Forum
- 25th Apr 2010I need to change the data of present table with different ajax source without creating new tablethank you it helped me a lot
- 8th Apr 2010Ajax JSON limitSorry, weird caracters in string caused the problem.
- 27th Feb 2010Problems with AJAX Pagination and PHPThis looks like a duplicate of http://datatables.net/forums/comments.php?DiscussionID=83&page=1#Item_13 . An answer to the issue is provided in that thread.
- 24th Feb 2010Click event not working with AJAXSorry saw someone mention using live closed window though. Solution example as follows [code] $ ('#eData tr').live ('click', function() { if ( $(this).hasClass('row_selected') ) $(this).removeClass('row_selected'); else $(this).addClass('row_selected'); [/code]
- 21st Feb 2010Server side scripting matching columns from ajax requestHi Shaun, You can add as many columns as you want coming back from the server-side - they don't need to 1:1 map to the database. Here is an example which adds a link tag: http://datatables.net/forums/comments.php?DiscussionID=1388 Allan
- 15th Feb 2010ajax and jQueryUIHi orange, Awesome - thanks very much :-) Allan
- 8th Feb 2010changing column classes after ajax loadi managed to fix myself by calling $.getJSON and modifying the json array to fit as a source for "aaData". for reference to anybody else here is my solution: [code] $.getJSON( '/myjson_source.php', null, function(json){ oTable = $j('.sortable').dataTable({ "aaData" : json, "aaSorting" : [[ 1, "desc" ],[ 0, "asc" ]], "sDom" : '<"top"fl>rt<"bottom"pi<"clear">', 'aoColumns' : [{ "sWidth": "400px", "sClass": "m-row2 m-row2-fade" }, { "asSorting":["desc","asc"], "sClass": "m-row1" }, { "asSorting":["desc","asc"], "sClass": "m-row1" }, { "asSorting":["desc","asc"], "sClass": "m-row1" }, { "asSorting":["desc","asc"], "sClass": "m-row1" }, { "asSorting":["desc","asc"], "sClass": "m-row1" }, { "asSorting":["desc","asc"], "sClass": "m-row3" }, { "asSorting":["desc","asc"], "sClass": "m-row3" }, { "asSorting":["desc","asc"], "sClass": "m-row4" }, { "asSorting":["desc","asc"], "sClass": "m-row4" }, { "asSorting":["desc","asc"], "sClass": "net m-row_zero" }, { "asSorting":["desc","asc"], "sClass": "net m-row_zero" }] }); // add extra jquery here to change classes }); [/code]
- 23rd Jan 2010server side processing and ajax sourceHi, I resolved the problem, it was my fault. thank to your advise to use firebug, it helps me showing a php warning inside the output source. Leo
- 23rd Nov 2009Processing Percentage Done / Progress Bar for Large AJAX Data Sets?Thanks Allan, these are all good suggestions. I had already noted the performance bump from disabling bSortClasses in other tables, and I have even disabled sorting entirely on this table to get as much speed as possible. (I still use DataTables for its filtering, pagination and row manipulation features.) I did some more investigation and discovered that it is not the rendering which takes the majority of the time, but the JSON download and processing (the JSON data is ~750KB and rising). So, in order to display a proper progress bar, I'd need to get download processing feedback from the getJSON procedure, which just isn't possible AFAIK... Just as I type this, it occurs to me that I could manually perform the getJSON request outside of the DataTables init function, but grab it in four or five smaller chunks. This way I could give a progress update on complete of each JSON chunk. Although there would be more XHR loads, there would be more feedback to the user at an early stage of the load. Once I've got the JSON data loaded into a variable, it seems it would be a simple matter of using fnAddData() each time... Will feed back any further developments! :)
- 6th Nov 2009Delay loading from AJAX until a click/eventHi mathie, Two options spring to mind, Just do the initialisation for each DataTable when the tab becomes active. Initialise the all together with empty data, as you suggest, and then you fnReloadAjax() to populate them as required using the tab's events handlers. Regards, Allan