close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Datatables.net extension

Thread began 1/21/2013 10:44 am by info4753 | Last modified 1/23/2013 11:24 am by CraigR | 911 views | 7 replies |

info4753

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.

Sign in to reply to this post

CraigRBeta Tester

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.

Sign in to reply to this post

info4753

Starting form where exactly? Creating a DA result page?

A tutorial would be great!!

Sign in to reply to this post

CraigRBeta Tester

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..

Attached Files
datatables_r.pdf
Sign in to reply to this post

info4753

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?

Sign in to reply to this post

CraigRBeta Tester

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

Sign in to reply to this post

info4753

Thx a lot Craig!

I didn't know that it's that easy!

Sign in to reply to this post

CraigRBeta Tester

glad you found it helpful.

there are loads of options you can set, it is a very good jquery tool

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...