Hi,

I may have the wrong end of the stick here, but I think what you want is:

  svgdoc.getElementById('image').setAttributeNS('
http://www.w3.org/1999/xlink', 'href', 'image.png');

-Jonathan

On 12/10/05, cmragsdale1 <[EMAIL PROTECTED]> wrote:
>
> I'm new to SVG and need some help.
>
> What I need to do is allow users to draw shapes on a jpg image (in this
> case a map). This is all set up and working very nicely.
>
> In order to get the jpg to serve as a canvas, it appears that the jpg
> has to be part of the SVG document. I do,however, need to be able to
> dynamically change the URL of the image as users make changes and
> request alterations to the map -- the mapping program generates new
> jpg's when the user modfies the map.
>
> I've tried everything that I can think of and the new image is never
> displayed. I recall reading somewhere that image display is not
> actually part of the DOM and am concerned that I may have to do
> something wierd to make this work (I've considered copying the jpgs to
> the user's machine and renaming them to the name of the original image -
> - which would be horrible, but might work; or trying to dynamically add
> a new image and remove the old one -- I don't know if that works like
> adding new shapes or not).
>
> Does anyone know how to make this work. I was really excited to get
> this far and thought that the rest would be a breeze, and now . . .
>
>
>
>
>
>
> -----
> 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
>
>
>
>
>
>
>


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



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/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