Plug in

Plug in

wathertonwatherton Posts: 33Questions: 6Answers: 0
edited February 2013 in Plug-ins
Hi there,

new to the datatable world, and need some assistance using one of the plugins. How does one use the .js file which is mentioned that is need. In the plugin section, it refers to : script type="text/javascript" src="dataTables.scrollingPagination.js">

Do i create this file myself, and then fill it with the plugin details?

Replies

  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    > Do i create this file myself, and then fill it with the plugin details?

    Exactly that. The Javascript is provided for the plug-in. Where you put it and how you include it on your page is entirely up to you.

    Allan
  • wathertonwatherton Posts: 33Questions: 6Answers: 0
    thanks Allan. whilst waiting for a response, i dropped one of the functions into the body of my page inside a script tag, and this did nothing, so i'll create the js file and place the code inside of that.

    Cheers
  • wathertonwatherton Posts: 33Questions: 6Answers: 0
    Ok, must be doing something wrong. I've created a .js file, referenced it in my page, and written the following:

    able = $("#grdMsgDateDetail").dataTable({
    bJQueryUI: true,
    sPaginationType: "four_button",
    sDom: 'Rlfrtip',
    oColReorder: {
    aiOrder: [13,12,11,10,9,8,7,6,5,4, 3, 2, 1, 0]
    },
    sDom: 'RC<"clear">lfrtip',
    aoColumnDefs: [
    { bVisible: false, aTargets: [10,11,12,13] }
    ]
    });

    I want to use the four_button api. I've done a cut and paste of the function on the page. Do i need anything further in the file?

    Many thanks.
  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    Can you link to the page showing the error please?

    Allan
This discussion has been closed.