Hello,
I would like to automatically click the export button - that is set to use export to CSV only - when the page is loaded.
The javascript will be inserted in
"Startup Script" under "Client Scripts" -> "Table-Specific" -> "List Page"
If button is defined like this:
<button href="images/car.jpg" id="myButton">
Here is the Button to be clicked
</button>
Then javascript would be this:
<script>
$(document).ready(function(){
document.getElementById("myButton").click();
});
</script>
But what is the id of the export button when this is generated in PhpMaker2017:
<div class="btn-group ewButtonGroup">
<a title="" class="btn btn-default ewExportLink ewCsv" href="sr_logbooklist.php?export=csv" data-original-title="CSV" data-caption="CSV">
<span class="icon-csv ewIcon" data-caption="Export til CSV" data-phrase="ExportToCsv">
</span>
</a>
</div>
tia
/Poul