Adding functions

Adding functions

AssessmentDayAssessmentDay Posts: 2Questions: 0Answers: 0
edited July 2012 in General
Hi I am new to datatables and am trying to get five functions working that appear on the example here - http://datatables.net/

The four functions are:
- the arrows in the header that switch from top to bottom
- the show entries box in the top left corner
- the search box in the top right corner
- the 'Showing 1 to 10 of 58 entries' display in the bottom left corner
- and the pagination in the bottom right corner - I want to have just the two buttons - forward and back

How can I get these to work. Here is the link to my page - http://dev.assessmentday.co.uk/feedback.htm

If anyone could help me out that would be great.

Thanks.

Replies

  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    Have a look at the Firebug or Inspector console in your browser - you've got a few 404 and script errors there :-)

    Allan
  • AssessmentDayAssessmentDay Posts: 2Questions: 0Answers: 0
    Sorry, try this, I forgot to upload everything as I was testing locally.

    http://dev.assessmentday.co.uk/feedback.htm

    Are there any instructions anywhere for beginners?
  • naddy19naddy19 Posts: 8Questions: 0Answers: 0
    Initialise the datatable this way:
    [code]
    $(document).ready(function() {
    $('#example').dataTable({
    "sPaginationType": "two_button", /* Shows two buttons for pagination */
    "bFilter": true, /* Shows the search box at the top right corner */
    "aoColumns": [ /*Shows the sorting arrows on each column */
    null,
    null,
    null,
    null,
    null
    ]
    });
    } );

    [/code]

    I hope this answers your query.
This discussion has been closed.