DRAWSVG user's manual
PreviousNextContentsPDF

12.1. Integration by URL

This solution can only be used if your svg documents can be edited and updated by URL with a service (REST) to read (HTTP GET) documents and update them (HTTP PUT).

This use case is done with the 'svgrurl' entry with two parameters:

  1. the url parameter to specify the encoded url of the document to be edited.

  2. the save parameter with true or false value, If true, when saving the document, DRAWSVG will send a put request to the url with the document contents to save it (see save document ).

The general syntax is :

http://www.drawsvg.org/drawsvg.html#svgurl:url=encoded_url&save=true
      

To call DRAW-SVG with the svgurl entry, use an HTML 'a' element or an iframe element :

<a href='http://www.drawsvg.org/drawsvg.html#svgurl:url=encoded_url&save=true'>edit with drawsvg</a>