Safari - All Links download when clicked after clicking CSV button?

Safari - All Links download when clicked after clicking CSV button?

drrosenpenisdrrosenpenis Posts: 2Questions: 1Answers: 0
edited March 2018 in Free community support

I'm seeing strange behavior with the CSV button in Safari. Here is my initialization:

$(document).ready(function() {
    $('#my_table').DataTable({
              dom: "lBfrtip",
              buttons: ['copy', 'csv'],
              "iDisplayLength":-1,
              "oLanguage": {
                "sLengthMenu": 'Show <select>'+
                  '<option value="-1">All</option>'+
                  '<option value="25">25</option>'+
                  '<option value="50">50</option>'+
                  '<option value="100">100</option>'+
                  '</select> records'
              }
          } );
} );

Basically when clicking the CSV button it works fine, csv is downloaded no problems. However after the button is clicked any other web link on the page that is clicked is downloaded instead of opened. E.g. if the link to 'another_page.php' is clicked instead of that page opening it is downloaded as another_page.php.html. Any ideas?

Thanks,

Answers

  • drrosenpenisdrrosenpenis Posts: 2Questions: 1Answers: 0

    **Edit
    If the href opens in a new window (target="_blank") it downloads (after the csv button is clicked). If the href opens in the same window it opens as expected.

This discussion has been closed.