
Hi Steve,
Backends can be many things. I work on this genetics project (AGPLv3) which uses d3/svg and does all sorts of things:
Code: https://github.com/IQSS/gentb-site Live: https://gentb.hms.harvard.edu/maps/
It's django/python that does the json handling, and django does make it easy to construct json responses. But it's a complex process here, so not a clean example.
Best Regards, Martin Owens
On Sat, 2017-04-29 at 13:24 -0400, Steve Litt wrote:
On Sat, 29 Apr 2017 02:41:11 -0400 Martin Owens <doctormo@...155...> wrote:
Steve,
I'm attaching a dynamic loader that I just knocked up. direct javascript (no jquery or other deps) loads in an svg file specified in a div tag "data-svg" much like an image tag would.
https://inkscape.org/en/~doctormo/%E2%98%85insert-svg-into-html-lik e-an -img-tag
Nice Martin!
Do you by any chance have any back end web apps hanging around that basically receive the ID of the clicked object, do some data processing, and send some simple JSON back so the front end can update itself based on the JSON?
Or anything like that? Basically, the logic concerning my clickable map is just a little too complex to put entirely in the front end.
Thanks, SteveT
Steve Litt April 2017 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user