Nevron Forum

Diagram for the Web without ASP.NET

https://www.nevron.com/Forum/Topic7732.aspx

By Dieter Schulten - Tuesday, May 7, 2013

Hello,

i am looking for a way to export a diagram to SVG or PNG (JPG) and have a client interaction just within javascript.
You have a lot of great examples for the web, but all of your examples are using ASP.NET.

I just want to export a diagram as SVG or Image, and use to create client interaction using javascript.
For example the user clicks on an element of the diagram in the browser an a javascript "alert" says
"You clicked the element with the id XYZ".

I am able to export a digram as SVG and can show this SVG within the browser. But i am unable to
add custom "TAGS" or "SCRIPTS" to an element of the exported SVG.

How can i add a custom TAG to shape, which can be used in javascript to do some interaction?
I need it to determine wich element the user clicked.
I a add a InteractionStyle to a shape, they dont't get exported within the SVG, so i am unable to
identify an element.

Maybe anyone has done this without ASP.NET an get me on the right way.

Regards, Dieter