Yes, that's the problem - future assignments of a new href to that image
don't trigger a new onload event in ASV, but it does in FF (and Opera,
apparently).
I'll try issuing a reload and see if that helps.
Anyone else got any other ideas? Would this be considered a bug in the
adobe implementation? I'd have thought so.
Guy
David Dailey wrote:
> At 09:34 AM 4/27/2006, you wrote:
>
>> try setting the onload from in javascript - that's what i'm attempting
>> and she no work.
>>
>
> Oh... now I see what you're talking about --
>
> I tried the following (avoiding your function() constructor to
> simplify things):
>
> I=svgDoc.getElementById("I")//the <image> tag in SVG
> IM=new Image()
> IM.src="../p17.jpg"
> IM.onload=announce //a function containing an alert()
> I.setAttributeNS(xlinkns,"xlink:href",IM.src)
>
> It works in FF and Opera, and it works once in IE. Once the image has
> loaded once, the browser seems to cache the memory of it being loaded
> already so it only works once (try renaming the file and pointing the
> browser at a new file -- I'll be you can get the function to activate
> again. Note: I did this by building a virtual image in JavaScript
> rather than assigning an onload attribute to the image tag -- I don't
> know if this matters.
>
> Once might be enough for many purposes, but I agree that the problem
> is a problem and will hope others can help us out. I would share your
> interest in finding a solution to this.
>
> David
>
>
>
> -----
> 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]
-----
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/