I'm probably missing an easy way to do this but I would like to add a new
filter to an existing svg document so it can be used to dynamically change
elements.
I attempted to add the filter to the <defs> but doing so in response to
documentLoadingComplete seems to be too late. Is there another way to do
this? Should I be hooking into the building of the DOM tree at some point?
Or is there a programmatic way to modify the defs or define the filter?
Thanks for any advice.
eg
insert this into <defs>:
<filter id="myfilter" .../>
modify an element in code:
el.setAttribute("filter", "url(#myfilter)")
_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]