I have some objects inside of svg that can be clicked by user.
Is there any way to: - send information about object (id) that was clicked by user to the 'main html document'? - draw from outside document in the svg file.
Probably, my description is unclear,... I want to implement something like this:
- user click on any object inside of svg-image;
- main document will receive id of the clicked object and:
- display some information about that object;
- draw additional object inside of the svg-image.
Questions: how to communication from svg to document and from document to svg?
Thanks a lot, any thoughts are welcome!
P.S. Probably SVG is not the best way do that? What is better then?
EDIT: I saw recommendation regarding use of Raphael,.. but I would like to see 'native' options. (For now I'm analyzing Raphaels implementation to see that, but don't think it is doing exactly what I need).