javascript - update SVG dynamically -


i have objects inside of svg can clicked user.

is there way to: - send information object (id) clicked user 'main html document'? - draw outside document in svg file.

probably, description unclear,... want implement this:

  1. user click on object inside of svg-image;
  2. main document receive id of clicked object and:
    • display information object;
    • draw additional object inside of svg-image.

questions: how communication svg document , document svg?

thanks lot, thoughts welcome!

p.s. svg not best way that? better then?

edit: saw recommendation regarding use of raphael,.. see 'native' options. (for i'm analyzing raphaels implementation see that, don't think doing need).

see this example how dom of referenced svg parent document.

and here's example of how can call svg file parent document.

svg suited doing describe.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -