3
I have this requisition:
var exportUrl = 'http://export.highcharts.com/';
$.post(exportUrl, d1, function(d1) {
});
Since exportUrl+D1 becomes the url of my image generated by the server. how do I continue the process and download it ?
I tried it like this, but it didn’t work, it just opened a tab and showed the image.
window.location.href=(exportUrl+d1);
here and on my machine is not performing that automatic click
– Julio Henrique
It must be some javascript error, see your console, leave it open and try again and see if there are any errors. It’s downloading here?
– Lollipop
Unfortunately not downloading, and also no error appears. in your is downloading?
– Julio Henrique
Note that you have to make sure that the image url is valid and that she’s inside it:
[{download: 'http://imagem.png'}]
before passing the function. Can you download from here? In the example above?– Lollipop
Lolipop only by clicking the button (a)
– Julio Henrique
Exactly! You have to generate the action, run the function... In this example you need to click the button.
– Lollipop