On 12/10/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Thanks, I'll try that. What I had tried was:
>
> svgdoc.getElementById('image').setAttributeNS('xlink:href', 'image.png');
>
> and that doesn't do anything. It doesn't error, but it doesn't do
> anything.


Strange. In FF 1.5 if you don't provide the expected number of arguments
then you usually get an error. I tested and got

Error: uncaught exception: [Exception... "Not enough arguments [
nsIDOMSVGSVGElement.setAttributeNS]"  nsresult: "0x80570001
(NS_ERROR_XPC_NOT_ENOUGH_ARGS)"  location: "JS frame :: javascript:
document.documentElement.setAttributeNS('xlink:href', 'image.png'); ::
<TOP_LEVEL> :: line 1"  data: no]

Not sure why you wouldn't have.

I've thrown up a document to explain what I hope is enough about namespaces
to get people new to them up and running with minimal pain. If it might help
you, see:

  http://developer.mozilla.org/en/docs/SVG:Namespaces_Crash_Course

-Jonathan


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
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/

<*> 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