Download imagen PlantUml HTML and JQ

0 votes
asked Jun 25, 2018 in Question / help by Nykolai
Hi. I am trying to incorporate the service into my website.

I need to download the image that is generated, but I do not know how. I do not know how to get the url.

BODY:
<div id = "Div_contain_image"> <img uml = <% = textAProcess%>> </ div>
<a href="#" onclick="prepHref(this)" download> See link </a>

JS:

<script type = "text / javascript">
function prepHref (linkElement) {
var myDiv = document.getElementById ('Div_contain_image');
var myImage = myDiv.children [0];
linkElement.href = myImage.src;

}
</ script>
commented Jul 14, 2018 by albert (3,620 points)
Which service are you talking about? When talking about having the possibility to input some text and getting an image back I think (but I didn't test) you should have a look at: http://plantuml.com/server

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...