Hi, why does this not work?
<script>
var link = "${outFile}";
</script>
<div id="footer">
<a id="csvLink" href="">Download .csv file</a>
</div>
<script type="text/javascript">
document.links["csvLink"].href = link;
</script>
Printable View
Hi, why does this not work?
<script>
var link = "${outFile}";
</script>
<div id="footer">
<a id="csvLink" href="">Download .csv file</a>
</div>
<script type="text/javascript">
document.links["csvLink"].href = link;
</script>
What does
alert (link);
shows you? Is there a variable assigned? Does links["csvLink"] work? Test it by replacing the variable link with a fixed string like 'Google.com'.
Please report back with any results.