Allan Jardine
edabb3febe
Dev fix: Oops - committed code from a test to the zero config example!
2011-11-18 16:17:32 +00:00
Allan Jardine
58f85fc601
New: Add "sServerMethod" initialisation option to make it easy to change from GET to POST for server-side requests. Needing to supply a custom fnServerData just to get POST was a bit of a pain - this is now no longer needed. In theory fnServerData should generally not be needed now (with fnServerParams, mDataProp and this new parameter making set up much more flexible).
2011-11-09 08:50:30 +00:00
Allan Jardine
af16d8016c
Don't initialise the xhr listener if there is no DataTable on the page
2011-11-08 10:13:03 +00:00
Allan Jardine
9b0bc1bbf9
New: Update SyntaxHighlighter to include a submit button to run the example directly in JSBin (live.datables.net)
2011-11-01 12:09:08 +00:00
Allan Jardine
1ae7f81a11
Dev update: Slight modification of style for the inner functions in the pagination controls
2011-10-15 09:01:27 +01:00
Allan Jardine
7e9d5eb537
Examples: Add JSONP examples for the 'id's and 'objects' sever-side scripts. Might make all JSONP compatible at some point...
2011-09-30 19:42:09 +01:00
Allan Jardine
efa3209654
Fix example: Need element scope to calculate TD index! - 6647
2011-09-20 19:37:17 +01:00
Allan Jardine
1d2db4d5e9
New: All examples which show Ajax requests now show the JSON response from the server (highlighted to be readiable JSON formatting) and the responses shown will update with each additional request. The idea is to make the formatting that DataTables expects / can cope with more obvious
2011-09-10 08:53:02 +01:00
Allan Jardine
a444026985
New: In the syntax highlighting also pickout DataTables' API methods and link them to the reference page
2011-09-05 19:24:18 +01:00
Allan Jardine
f788dd28d3
New: Syntax highlighting for the examples and provide a link for DataTables initialisation options to the reference page
2011-09-05 19:14:02 +01:00
Allan Jardine
0c296ca76e
New: fnServerParams callback function - this allows additional parameters to be added to the XHR for server-side processing or Ajax sourced, client-side processed data, with ease. Previously it was required to override the fnServerData method just to add a couple of parameters, but the built in fnServerData method is quite comperhensive and you don't want to have to reproduce all of that unless you need to. Now you don't need to :-). fnServerParams is called on each request, so it is ideal for adding extra parameters such as search parameters which can be updated by users.
2011-09-02 16:01:56 +01:00
Allan Jardine
127339549e
Fix: Examples - Typo for aaData reference - 6096
2011-08-09 21:52:28 +01:00
Allan Jardine
1c8f1e3465
Fix typo in example code
2011-08-05 19:53:13 +01:00
Allan Jardine
b61466cca4
Examples fix: Only include jQuery once...
2011-07-03 17:02:09 +01:00
Allan Jardine
0d94f1af0c
Update: For objects, consider mDataProp which is sent from DataTables for sorting and filtering to get the correct order of the rows. This is useful for ColReorder and more generally it increases the flexability of the whole table
2011-06-25 08:34:54 +01:00
Allan Jardine
bb26e08b4e
Examples fix: Details table has one extra column in it at the start, so this needs to be taken into account when sorting - 5422
2011-06-21 06:48:21 +01:00
Allan Jardine
839f5418a9
Fix: A couple of typos in the examples
2011-06-11 18:10:21 +01:00
Allan Jardine
3ae5367ddc
Dev fix: Committed test case my mistake - reverting
2011-05-14 10:58:00 +01:00
Allan Jardine
fa85d34b24
Fix: Update Ajax data source demo with new location for the data source file
2011-05-04 18:37:25 +01:00
Allan Jardine
ed00eac7f5
Updated: Update the links on all examples to include the new examples for 1.8 and general tidy up of examples
2011-04-26 07:30:31 +01:00
Allan Jardine
a9b9dc4ffe
New: New examples for the various features of DataTables 1.8
2011-04-25 19:07:57 +01:00
Allan Jardine
e9adba0802
Dev change: mDataSource renames to mDataProp. Reason for the change is that in future we could have mSortProp and mFilterProp if we wanted to sort / filter on something other than the main data. Also we are refering to a property of the source object (or an index of the source array - hence keeping the 'm' prefix)
2011-04-23 10:38:00 +01:00
Allan Jardine
1f681d81ac
Dev fix: Again with the destroy...
2011-04-23 09:00:37 +01:00
Allan Jardine
707953a285
Fix: fnDestory would put the table back into the DOM in the wrong place if the table wasn't the the only (or last) element in the parent (i.e. it was just doing an append) - 4751
2011-04-23 08:58:58 +01:00
Allan Jardine
22f0ebb26f
Dev fix: Remove destroy call from example!
2011-04-23 08:41:58 +01:00
Allan Jardine
8481826407
Fix: Sort wrapper on the header wasn't being removed on fnDestroy - 4617
...
New: Span elements in the header when using JUI themes, now have the class of DataTables_sort_icon applied to them automatically
2011-04-23 08:40:34 +01:00
Allan Jardine
d419c4ef66
New: JSONP example to show how it might be done - 4746
2011-04-23 07:00:25 +01:00
Allan Jardine
80c7663851
Dev fix: Correct typo
2011-04-23 07:00:10 +01:00
Allan Jardine
d60b9fd923
New: Add deferred loading example
2011-04-23 06:49:34 +01:00
Allan Jardine
2d0aff2b39
New: The ability to customise the property that is read when obtaining Ajax information from the server, for the data to insert into the table. The new initailisation parameter is sAjaxDataProp. It can be used with Ajax sourced data or server-side processing. When Ajax sourced data is used, it can be an empty string in which case it is assumed that an array has been passed into DataTables directly. Note also that it uses the same object data processor as mDataSource, so you can use dot notation to read from nested information (e.g. 'my.data').
2011-04-21 18:37:36 +01:00
Allan Jardine
a6c8a13e6a
New: Unit tests for column visibility with complex headers and fnSetColumnVis
2011-04-20 20:05:14 +01:00
Allan Jardine
f172ef5383
New: Significant change to how data is handled by DataTables. DataTables now has the ability to deal with complex objects as data sourced, which is particularly useful for dealing with Ajax data, and other data which doesn't belong in the visible table (db IDs for example). See the examples/ajax/ files that are in this commit for examples on how this works. More unit tests and further tidy up to come. Detailed examples will also be added in future - the current examples are mainly for testing
2011-04-19 19:35:33 +01:00
Allan Jardine
70305b1831
Updated: Move the various server-side example support scripts into the server_side/scripts directory
2011-04-17 10:54:14 +01:00
Allan Jardine
77ba6c790a
Fix: Remove tailing comma for IE6/7
2011-03-22 18:23:44 +00:00
Allan Jardine
a99c64bea8
Fixed: Typo
2011-03-18 18:01:28 +00:00
Allan Jardine
07b3557c53
Fix: With all warnings enabled in PHP, there were certain DataTables initialisations which could trigger warnings in the example server porecessing script.
2011-03-01 21:44:43 +00:00
Allan Jardine
e2f8a1375a
Documentation: typo "it's" should be "its"
2011-01-27 19:09:55 +00:00
Allan Jardine
1f65b1187f
Updated: Server-side example scripts brought up-to-date
2011-01-25 18:06:36 +00:00
Allan Jardine
1e9436cc5e
Updated: jEditable source to v1.7.1
2011-01-18 19:02:33 +00:00
Allan Jardine
eec881b8ac
Fixed: Remove the 'sNames' parameter that was introduced for server-side processing in 1.7.4. The parameter 'sColumns' actually performs exactly this task already. Doh. Also update the example PHP to take this into account - 3218
2010-10-31 17:16:35 +00:00
Allan Jardine
a6365b3f69
Updated: Server-side processing script for column re-ordering has been updated to take account of sNames parameter which is sent in from DataTables, and also brought up to date with the main server-side processing script.
...
Changed: From the previous commit sNames sent from the client to server is now a comma seperated list of sNames and is always sent regardless of if names are given or not. This matches the sName formatting for the server-to-client return.
2010-10-29 08:48:13 +01:00
Allan Jardine
17d7d3b270
Fixed: Highlight via CSS example had incorrect documentation - 3155
2010-10-25 18:51:06 +01:00
Allan Jardine
27627b287d
Updated: Trivial change to update hte favicon used by the DataTables examples from the SpryMedia icon to DataTables
2010-10-08 21:15:17 +01:00
Allan Jardine
af94c4b217
Updated: server-side processing example script updated to use json_encode, so this version will now require PHP 5.2 or newer. A version for older PHP versions can be found here: http://datatables.net/development/server-side/php_mysql4
2010-10-07 18:09:04 +01:00
Allan Jardine
35b7655bec
Fixed: server-side processing demo script now takes account of strings which new line characters
2010-10-07 17:53:48 +01:00
Allan Jardine
596ea4b9e9
Fixed: If a TR height was specified via css globally (for example tr{height:20px}) this would cause the hidden header and footer in scrolling tables to be shown. Added override by CSS style for this - 2765
2010-09-30 21:47:46 +01:00
Allan Jardine
81107d0b7d
Fixed: State saving when there were no column being sorted was broken - 2914
2010-09-30 20:18:33 +01:00
Allan Jardine
2315bf3635
Fixed: Add a sanity check to ensure that the node given to DataTables is in fact a table - 2343
2010-09-30 08:58:12 +01:00
Allan Jardine
351218c473
Updated: Added link to Marko's post in the forum for the input multi filter example, giving the code for how to restore the values when state saving is enabled. Thanks Marko - 2864
2010-09-30 08:52:53 +01:00
Allan Jardine
ba2db97c4d
Updated: server_side/row_details.html and api/row_details.html both now used live events to make life easier.
2010-09-30 08:48:17 +01:00