hi,

xlink is not the svg namespace. try

img.setAttributeNS('http://www.w3.org/1999/xlink','xlink:href','image2.jpg');


andr�




kelumsvg schrieb:
> hi, 
> i have embedded image in my svg file.the coding is like follows 
> 
> <image id="img" xlink:href='image1.jpg' .........>          //image1.
> jpg 
> 
> when i click a button i want to change that image to image2.jpg 
> 
> for that i used. 
> 
> 
> img=svgdoc.getElementById("img") 
> img.setAttributeNS(null,'xlink:href','image2.jpg'); 
> 
> this does not give errors.but image does not change.image1.jpg remains 
> as same. 
> pls help me 
> regards, 
> kelum.
> 
> 
> 
> 
> -----
> 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
> 
> 
> 
>  
> 

-- 
___________________________________________________________________
        _________
      _/         \____       _______
    _/   ___-----___  \_____/     _ \
   /   _/    \|/    \_       \_,+' \ \
  /   /  _\|      |/_ \               |
|  ,-----------------------------------------              � � �
|==THERE'SSOMANYDIFFERENTWORLDSSOMANYDIFFERENTSUN================
|==SANDWEHAVEJUSTONEWORLDBUTWELIVEINDIFFERENTONES================
|  '-----------------------------------------              � � �
  \   \_ -/|      |\-_/       _       |
   \_   \___ /|\ ___/  _____ / '+,_/ /
     \_     ----- ____/     \_______/
       \_________/


andre m. winter                             <http://www.carto.net/>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/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