First, as I'm new to this board: Hello everyone!
I'm having trouble importing external SVG with XMLHttpRequest.
It's inserted in the document but isn't visible. If I look at the
html-tab in Firebug the new element is there there but it's slightly
faded out. And when I inspect the DOM-ode of the element the
namespaceURI is null. I've tried using importNode but i doesn't help.
The code looks like this:
response = req.responseXML.documentElement;
importedNode = document.importNode(response, true);
tempElement = document.getElementById(itemID + "Tank");
tempElement.appendChild(importedNode);
The elements is sent over with a very basic php-file:
<?php
header('Content-Type: image/svg+xml');
echo("<g id='fish'> <rect x='40' y='50' width='140' height='100'
fill='red' /></g>");
?>
Here is how it looks in Firebug:
http://img250.imageshack.us/img250/2471/firebug2dl.gif
Thanks in advance /Fredrik
[Non-text portions of this message have been removed]
-----
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:
mailto:[EMAIL PROTECTED]
mailto:[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/