No excel button

No excel button

LuiKangLuiKang Posts: 6Questions: 1Answers: 0
edited July 2016 in Free community support

Hello!

DataTables is great, I love to use it.
The only thing left to use in my site is the Export to Excel button.

I try to use it, I think I set it up well - but no button shows up.

I've uploaded my code to a free site (sometimes its time to load in, sometimes its fast):
http://85.255.0.161/datatable_excel_test.php

Can you please help me what do I do wrong? I bet its a simple mistake what I don't see...

LuiKang

This question has an accepted answers - jump to answer

Answers

  • LuiKangLuiKang Posts: 6Questions: 1Answers: 0

    (link edited, now it works)

  • F12MagicF12Magic Posts: 109Questions: 0Answers: 28
    edited July 2016

    You have a table inside another table. That table has no id attribute.
    Try giving the second table a id attribute like this:

    <table id="example" width="99%" align="right" class="t_data" border="0" cellspacing="0" cellpadding="0">

  • allanallan Posts: 63,258Questions: 1Answers: 10,421 Site admin

    www.bl.comlu.com’s server DNS address could not be found.

    I'm not able to load the page I'm afraid.

    Allan

  • LuiKangLuiKang Posts: 6Questions: 1Answers: 0

    Now its reachable.

  • LuiKangLuiKang Posts: 6Questions: 1Answers: 0

    Updated the server address (moved to an other site) - now it must be reachable.
    Please look at it, F12Magic's answer not answered.

  • F12MagicF12Magic Posts: 109Questions: 0Answers: 28
    edited July 2016

    Sorry, missed the third table with id.
    As far as I can see you're missing a javascript library you need to load in the head tag.

    buttons.html5.js and/or buttons.flash.js is also required according to the excel reference page

  • LuiKangLuiKang Posts: 6Questions: 1Answers: 0

    Ty F12Magic, I put the missing line there, but still no excel button.

  • allanallan Posts: 63,258Questions: 1Answers: 10,421 Site admin
    Answer ✓

    Can you load JSZip and pdfmake before Buttons please. I believe that should resolve the issue.

    Allan

  • LuiKangLuiKang Posts: 6Questions: 1Answers: 0

    EXCELlent! :smiley:

    Thank you allan, that worked!

This discussion has been closed.