Datatables.net extension
There is still an outdates table being used with Datatables. Since "JQuery/Adobe" won't release a table before 2014 (as it looks like), I'd like to have a extension that uses datatables.net instead.
There is still an outdates table being used with Datatables. Since "JQuery/Adobe" won't release a table before 2014 (as it looks like), I'd like to have a extension that uses datatables.net instead.
You can apply datatables to a table with static content, or dynamic content created with databridge and a recordset - if you can do just a few lines of manual coding.
Starting form where exactly? Creating a DA result page?
A tutorial would be great!!
Ok, I'll retract that slightly.
I tend to use datatables in 2 ways, either by modifying a results page i created with the databridge wizard, or by adding a recordset and a table to an empty php page and adding the necessary datatables javascript code.
For the sake of a 'tutorial', i will show you the second way.
A bit quick and dirty, but it should get you started..
That's great, thanks a lot!
I didn't know that this works with DW recordsets. I've done that by generating a json file first.
How are you generating buttons, links (with IDs) or images this way?
Can you please explain me, why you are using the "jQuery.fn.dataTable Ext ..." code line?
links work in the same way as usual - the data generated via php is the same, the javascript used in datatables only changes how it appears
for example, if you were to look at a results page generated by dataassist, the edit button would look something like this...
<input type="button" class="formButton ResultsPageButton unstyled UpdateButton" value="" onclick="document.location.href='/admin/documents_update.php?DocumentID=<?php echo($row_WADAtbldocuments['DocumentID']); ?>
this still works within a datatable.
the pagination line you highlighted allows you to set the (maximum) number of pages displayed between the 'previous' and 'next' buttons - when you elect to use the fullnumbers paginaton option.
try changing the integer to see what i mean
Thx a lot Craig!
I didn't know that it's that easy!
glad you found it helpful.
there are loads of options you can set, it is a very good jquery tool
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.