D
D
ddsl2011-08-26 08:26:19
Python
ddsl, 2011-08-26 08:26:19

SVG, event handlers and Python

I read that in the SVG format it is possible to call event handlers, for example, when you click on some element of the picture, I would like to implement this in python (that is, there is a form, the picture is in svg on it and when you click on any element, the event handler is called ). I tried to google, but it did not work, I ask for your help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
adsinger, 2011-08-26
@adsinger

You are a little confused. In the browser, JavaScript can respond to the event (svg, canvas, mouse, keyboard - it doesn't matter). Use AJAX to call a python server click handler.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question