recently i made a website that has the ability to export the data of a table to an excel file. I am using the plugin table2excel for this which works fine on Chrome but doesn't work on IE, safari, firefox or any other browser for that matter. was wondering if i am doing something wrong here and if there is any other plugin or way to do this:
(note: i am using laravels templating engine called blade to include the table2excel plugin) html:
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title></title>
<!-- CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
{{ HTML::style('css/style.css') }}
<!-- Javascript -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
{{ HTML::script('js/jquery.table2excel.js') }}
{{ HTML::script('js/script.js') }}
</head>
<table id="signedinTable" class="peopleTable table table-hover">
<thead>
<tr>
<th>Voornaam</th>
<th>Achternaam</th>
<th>Telefoon nr.</th>
<th>E-mail</th>
<th>Bedrijf</th>
<th>Partner?</th>
</tr>
</thead>
<tbody>
@foreach($results as $result)
@if($result->isGoing == 1)
<tr class="signedinRow">
<td>{{ $result->firstname }}</td>
<td>{{ $result->lastname }}</td>
<td>{{ $result->phone }}</td>
<td>{{ $result->email }}</td>
<td>{{ $result->company }}</td>
<td class="signedinPartner">{{ $result->partner }}</td>
</tr>
@endif
@endforeach
</tbody>
</table>
</div>
<button id="signedinExport" class="excl btn btn-primary">Download als excel bestand</button>
jquery:
$("#signedinExport").click(function(){
$("#signedinTable").table2excel({
exclude:".noExl",
name:"Aangemelde mensen",
filename:"Aangemelde mensen"
});
});
i am not getting any errors from ie, firefox or safari, also note that i'm not asking for people to write any code for me whatsoever, just a push in the right direction would be awesome!
please! every bit of help is VERY much appreciated!