Hi,
I'm just getting started to create user macros for confluence so I hope this is not a to silly question.
I created an user macro which simply searches for some text on it's confluence page and depending on the search result creates an output.
Simplified it looks like this:
<span id=(resultDate+$content.id)></span>
<script>
$(document).ready(function() {
var dateElement = document.getElementById("(resultDate+" + $content.id+ ")");
var dateResult = "Date result text";
$(dateElement).html(dateResult);
});
</script>
The macro works as expected but when I try to export the page as pdf or word my result is not included in the export.
As far as I searched the forum I guess that exporting is done on the server side and the javascript is done on the client side so that my javascript is not executed when exporting.
How can I achieve that my result is also included in the export-files?
Best regards,
Thorsten