I Agree with Kevin. However I like to propose a 100% cross brower method to have SVG rendering. with the minimum effort in incorporate, In the past, I have had it work on Opera FF 1.0 IE 5.6. I am sure it also on IE7.
METHOD -1. However it should not be a lone effort in defining "API" rather it should be a community's effort. In general this what I have done: (1) Instead of rely on "SVG" player to provide me with API to manipuate SVG content or save it content I rely on Browser's capability on XML. I acheieve this by using this (or something similar using documentwrite(url)) <div> <svg> ........ </svg> </div> (2) Once in there I can use DOM API to manipulate All (attrubute style . . . .) thing that I like. However DOM/XML API is not uniformed. You/we need to have if statement to set those function once. (3) I also have a "RefresgSvgAPI( string, div_destination)" function in javascript inside this fuction we any methode that we want do display it can be "kevin's method", or VML or ZIpProtocol, I ven use 100% JavaScript to provide base64 PNG file, or you can brower's native functions. (4) Whenever I want to repaint that SVG all I need to do is call RefresgSvgAPI with innerHTML string of that div above and the target div I what it to display on. (5) I have try it on FF 1.0 IE 5,6 and Opera And it work beautifully (of course on those of What i need). (6) While doing on this method I also found that IE and FF will become very very slow when it come to laeger SVG. It prompt me to work on method 2: METHOD -2: Very similar to Method one, However I use javascript Array to prepresent the SVG content. (1) - Instead of using browser XML capability I use brower its Javascript array functionality. However It need script on the Sever side to translate SVG content into Javascript (defining statements of an multi-dimensional array) ( This also can be done on client side) (2) once in ther I manilulate the SVG content the sane way I manipulate an array. Such as :MySVG["mypath3"]["style"]["opaicity"]="0.5" (3) When I want to repaint the SVG content I call "RefresgSvgAP" (I acheive the string by a series of join statement, one for "style" and one for anything else). (4) This also have been tested on IE FF and Opera. (performing wise, it better then method one; in many case it's also much faster compare to API wich provide by Browser's native SVG. Hope this Helps. Phi. On 9/12/06, Kevin Lindsey <[EMAIL PROTECTED]> wrote: > > Hey Randy, > > > I don't yet see how the Ajax/javascript approach could fill the > > vacuum left by ASV's sudden demise. > > I fully agree with Jon's response and I have nothing to add there. > However, I wanted to clarify that my proof of concept was purely > intended as a means of rendering static vector data (specifically SVG > path data) to various target renderers. It is by no means intended to > be a replacement for an SVG full implementation. > > I haven't been following Dojo2D, but I'm certain their project will be > much more feature rich, especially given that my code was more an > exercise of curiousity. That being said, it sounds like there are > already a number of viewers that could fill the vacuum. It's probably > more of a case of arguing how a company/project could benefit from > filling that void. This may not be an opinion shared by many people, > but in the end I think this will be positive for the community as it > will break our reliance on a viewer that has been stagnate for many > years. > > Kevin > KevLinDev - http://www.kevlindev.com > > > -- Phi - Tran Hugely increase your speed, saving your band-width with ZipProtocol plus crystal clear SVG Rendering image at HTTP://oneplusplus.com [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/ <*> 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: mailto:[EMAIL PROTECTED] mailto:[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/

