Joey_vbulletin3_import30063
New Member
The project:I'm currently undertaking a task of dynamically creating SVG elements through JS + jQuery. It's all going well, and I'm able to draw all the basic shapes onto the screen.The problem:When I try and declare the shapes in a \[code\]<DEFS>\[/code\] block, and draw with \[code\]<USE>\[/code\], nothing is drawn onto the screen.The confusion:Although nothing is drawn onto the screen, if I inspect the dynamic DOM through Firebug or Chrome's Dev tools, the syntax is fine; I can even copy out the syntax, place in a \[code\].SVG\[/code\] file and it will work fine.Additional information:
- I'm using inline SVG
- Using xhtml as opposed to html
- Mainly using the jQuery framework
- Anything outside \[code\]USE\[/code\] and \[code\]DEFS\[/code\] work fine.