- From: Cameron McCormack <cam@mcc.id.au>
- Date: Mon, 12 Mar 2007 15:16:25 +1100
- To: www-svg@w3.org
Hi DJ. DjShadow: > I have a problem. Adobe SVG viewer works fine just for IE. > I've tried to use it in Firefox and Opera and I had no good results. > Maybe you can help me. I need to render svg files like this: > > http://www.tse.gov.br/partidos/desempenho/depCand/df/df/dfdf6565.svgz > > When the map is ready you just click at "tematica" then you have the map > ready. But it just works using IE. > For Jesus, Do you know how to render this file on Firefox on windows or on > linux? Firstly, there is a problem with the configuration of your web server. Even though you are serving gzipped SVG, the MIME type the server reports is text/plain (it should be Content-Type: image/svg+xml and Content-Encoding: gzip). See: http://wiki.svg.org/Server_Configuration The document itself is missing namespace declarations on the document element. It should have: xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' With these, the document renders a map (at least) in Firefox on Linux. The interactions don’t seem to work, though. When mousing over a section of the map I get JavaScript errors. The script in the document seems obfuscated or generated; it’s difficult for me to diagnose the exact problem in a couple of minutes. Try to follow the guidelines Jonathan Watt has written up, which will help you with cross-browser SVG: http://jwatt.org/svg/authoring/ For more help you should try the Yahoo svg-developers group (www-svg is primarily for discussion the SVG specification itself). Cameron -- Cameron McCormack, http://mcc.id.au/ xmpp:heycam@jabber.org ▪ ICQ 26955922 ▪ MSN cam@mcc.id.au
Received on Monday, 12 March 2007 04:16:33 UTC