Aw: Re: Re: Use Resource to transfer SVG to PNG

2017-07-17 Thread Per Newgro
My main problem is, that i can not send the svg text to the resource. Doing so by request parameters is not an option because the firewall will deny that long cryptic content. Therefor i would like to send the svg content through a form. So far i have the following: In my page-markup (containin

Re: Message Scroll Banner in Wickets

2017-07-17 Thread Martin Grigorov
Hi, What have you tried so far ? See what HTML this PHP code produces and use some Wicket repeater to implement it. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Jul 17, 2017 at 6:38 AM, ASHU_JAVA wrote: > Hello All, > > I'm a beginner in Wickets and wa

Re: Re: Use Resource to transfer SVG to PNG

2017-07-17 Thread Martin Grigorov
On Mon, Jul 17, 2017 at 3:13 PM, Per Newgro wrote: > Thanks for your response Martin. > > I tried to make it work the whole day now. But i can not get it to work > with IE11. > There is always a security error. This is a known problem for IE and > canvas. > > I ended up: > > $("#chart-export").on

Aw: Re: Use Resource to transfer SVG to PNG

2017-07-17 Thread Per Newgro
Thanks for your response Martin. I tried to make it work the whole day now. But i can not get it to work with IE11. There is always a security error. This is a known problem for IE and canvas. I ended up: $("#chart-export").on("click", function() { var svg = document.querySelector( "svg" );

Re: Use Resource to transfer SVG to PNG

2017-07-17 Thread Martin Grigorov
Hi, Wouldn't HTML Canvas API be better solution? See https://stackoverflow.com/a/27232525/497381 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Jul 17, 2017 at 10:12 AM, Per Newgro wrote: > Hello *, > > I would like to generate a png from a svg. The tran

Use Resource to transfer SVG to PNG

2017-07-17 Thread Per Newgro
Hello *, I would like to generate a png from a svg. The transcoding is done by using Batik. So far it works as expected. But i'm not sure how to provide the resulting png (a byte[]) to my frontend. The svg is generate in browser by using highcharts. I would like to provide a button that downlo