Re: [svg-developers] image onload

2006-04-27 Thread David Dailey
At 09:04 PM 4/26/2006, Guy wrote:
i'm trying to access the onload event on an image element.


H... I was baffled as to why this shouldn't work, so I tried the following:
image id=I x=20 y=20 height=300 width=240 
onclick=carve(5,5) onload=alert('here')
xlink:href=../p17.jpg clip-path=url(#CP)/image

The alert fired just fine from IE (ASV 3) Opera 9 and FF1.5

The onclick works too.

Perhaps there is another problem with your image element?




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




Re: [svg-developers] image onload

2006-04-27 Thread Guy Morton
try setting the onload from in javascript - that's what i'm attempting 
and she no work.

David Dailey wrote:
 At 09:04 PM 4/26/2006, Guy wrote:
   
 i'm trying to access the onload event on an image element.
 


 H... I was baffled as to why this shouldn't work, so I tried the 
 following:
 image id=I x=20 y=20 height=300 width=240 
 onclick=carve(5,5) onload=alert('here')
 xlink:href=../p17.jpg clip-path=url(#CP)/image

 The alert fired just fine from IE (ASV 3) Opera 9 and FF1.5

 The onclick works too.

 Perhaps there is another problem with your image element?




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




Re: [svg-developers] image onload

2006-04-27 Thread David Dailey
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

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




Re: [svg-developers] image onload

2006-04-27 Thread Jonathan Watt
Have you guys tried

  svgDoc.getElementById(I).reload();

?

On 4/27/06, David Dailey [EMAIL PROTECTED] 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/
 





[svg-developers] image onload

2006-04-26 Thread Guy Morton
  mapImage.onload = function () {alert('boo')};

works in FF, but not ASV... anyone got a better idea of how to do this 
with FF and ASV support?

Guy


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




RE: [svg-developers] image onload

2006-04-26 Thread Peter Kalev
My SVG file has an onload that calls the mother page and it works in
ASV...

Peter Kalev
Senior Developer,
SWF, LLC


-Original Message-
From: Guy Morton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 26, 2006 5:36 PM
To: svg-developers@yahoogroups.com
Subject: [svg-developers] image onload

  mapImage.onload = function () {alert('boo')};

works in FF, but not ASV... anyone got a better idea of how to do this 
with FF and ASV support?

Guy


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




Re: [svg-developers] image onload

2006-04-26 Thread Guy Morton
i'm trying to access the onload event on an image element. i too have an 
onload firing from the svg element.

Peter Kalev wrote:
 My SVG file has an onload that calls the mother page and it works in
 ASV...

 Peter Kalev
 Senior Developer,
 SWF, LLC


 -Original Message-
 From: Guy Morton [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 26, 2006 5:36 PM
 To: svg-developers@yahoogroups.com
 Subject: [svg-developers] image onload

   mapImage.onload = function () {alert('boo')};

 works in FF, but not ASV... anyone got a better idea of how to do this 
 with FF and ASV support?

 Guy


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