Nick de Voil wrote:
>
> As part of a web-based drawing and diagramming application, I would like 
> to be able to create <use> elements on the fly, referring to <symbol> 
> elements which would themselves also ideally be defined on the fly.
> 
> So far, it seems that, if I define the symbols in a static SVG file, 
> Opera can then instantiate the <use> elements exactly as I would hope 
> using JavaScript, but Firefox, Chrome and Safari cannot. If I try to 
> define the symbols themselves using script, even Opera can't manage it.
> 
> Can anyone either confirm that I'm trying to push SVG further than it 
> will go, or conversely that these things can actually be done?
> 
> Thanks
> 
> Nick
>

Hi Nick,
Dynamically building SVG elements is a 'must have' within a browser.
I've tested IE9 with inline SVG and find it can dynamically build/update all 
svg elements.
e.g.
        //---namespace required to create inline svg elements----
        var NS="http://www.w3.org/2000/svg";
        var mySymbol=document.createElementNS(NS,"symbol");
        mySymbol.id="mySymbol"
        mySVG.appendChild(mySymbol)
I don't do much work in other browsers, but It would be a major oversight if 
they do not include dynamic SVG.
Regards,
Francis






------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to