All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wicketstuff.dashboard.widgets.ofchart.res.saveChartImage.js Maven / Gradle / Ivy

There is a newer version: 10.0.0
Show newest version
function save_image(chartId) {
    openImageWindow(chartId); 
}

function openImageWindow(src) {  
    var img_win = window.open('', 'Charts: Export as Image')
    with (img_win.document) {
        write('Charts: Export as Image<\/title><\/head><body>' + image(src) + '<\/body><\/html>') 
    }
    // stop the 'loading...' message
    img_win.document.close();
}               

function image(src) {
    return "<img src='data:image/png;base64," + $('#' + src)[0].get_img_binary() + "' />"
}
</code></pre>    <br/>
    <br/>
<div class='clear'></div>
</main>
</div>
<br/><br/>
    <div class="align-center">© 2015 - 2025 <a href="/legal-notice.php">Weber Informatics LLC</a> | <a href="/data-protection.php">Privacy Policy</a></div>
<br/><br/><br/><br/><br/><br/>
</body>
</html>