Thanks Erik

Will try to use IMG then.

Currently I have tried following

Function ShowClip () {

     var img = document.getElementById ("clips");
    img.setAttribute('data', 'http://www.veikoherne.com/svg/noopera.JPG');
img.setAttribute('type', 'image/jpeg');

or 


   img.data = newsImageData[currNewsImgIdx];
    img.type = newsImageData[currNewsImgIdx];

}
which will take my clips from an array without any luck. The data and type 
values inside object tag will stay empty. 


in page there is <OBJECT ID="clips" width="240" height="320"></OBJECT>

when I changed it to <IMG ID="clips" ... > I got noopera.JPG shown up. 

Veiko

 http://www.veikoherne.com



----- Original Message ----
From: Erik Dahlstrom <[email protected]>
To: [email protected]
Sent: Thu, February 10, 2011 10:57:30 AM
Subject: Re: [svg-developers] Showing SVG dynamically in browser

On Wed, 09 Feb 2011 18:43:06 +0100, Veiko Herne <[email protected]> wrote:

> After spending some time with Javascript I figured out that I can't set  
> OBJECT tag attributes from Javascript!!!

Can you provide an example?

> Any other way... should SVG SMIL clips work as IMG tag for example using  
> Opera?

Yes, declarative animation works in <img> tags.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


------------------------------------

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

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