Look at what he does here: http://keith-wood.name/svgBasics.html
See the drawInitial function. You need to load it, put it into a document.ready function or something. On Sunday, January 6, 2013 2:14:13 PM UTC, jonas wrote: > > Hi. > > Has anyone here tried the jQuery svg lib http://keith-wood.name/svg.html? > > I tried to use it in web2py but with no success. > > the necessary lib was imported: <script > src="{{=URL('static','js/jquery/jquery.svg.js')}}"></script> > but is seems that the svg function is not present : > > <div class="test">svg should be here</div> > > <script> > > $('.test').svg(); > > var svg=$('.test').svg('get'); > svg.circle(130, 75, 50, {fill: 'none', stroke: 'red', strokeWidth: 3}); > > </script> > > the above snippet doesn't work. anyone tried this? > > --