Hi Erik Yes, I know that IMG attribute is src, that's how I got at least jpg file to show up. I think, it may be the bug of IE as I do not have Opera to test it in public library. And as my clips still work only with Opera, all other browsers should show noopera.jpg
Veiko http://www.veikoherne.com ----- Original Message ---- From: Erik Dahlstrom <[email protected]> To: [email protected] Sent: Fri, February 11, 2011 11:04:23 AM Subject: Re: [svg-developers] Showing SVG dynamically in browser On Thu, 10 Feb 2011 17:42:40 +0100, veiko herne <[email protected]> wrote: > 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'); The attribute to set for <img> is 'src', not 'data'. > 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. Do you have two elements with the same 'id' in the document? 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 ____________________________________________________________________________________ Don't get soaked. Take a quick peek at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather ------------------------------------ ----- 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/

