User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » SVG support in IE/FF WITHOUT a plugin. Page [1]  
RSXTypeS
Suspended
12280 Posts
user info
edit post

I need to display maps in SVG but I don't want to require the end-user to install a browser plug in such as the svg viewer. I've seen this done before and I'm trying to re-trace the steps from where i've seen it to figure it out. Wondering if anyone has done this or knows of a javascript library that takes care of this for you.

thanks

1/7/2009 5:45:06 PM

confusi0n
All American
5076 Posts
user info
edit post

afaik SVG support is built in FF3 but not IE / FF2

1/7/2009 5:46:39 PM

qntmfred
retired
40552 Posts
user info
edit post

i used http://24ways.org/2007/supersleight-transparent-png-in-ie6 to get transparent png in IE6. maybe could use a similar technique?

1/7/2009 5:56:22 PM

evan
All American
27701 Posts
user info
edit post

Quote :
"afaik SVG support is built in FF3 but not IE / FF2"


SVGs work fine for me, i'm on ff 3.1b2

1/7/2009 7:00:43 PM

confusi0n
All American
5076 Posts
user info
edit post

I guess that should have read

SVG support is built into FF3 AFAIK not IE/ FF2


qntmfred: SVG isn't even remotely close to PNG, I have no idea where you're going with that

1/7/2009 7:05:45 PM

RSXTypeS
Suspended
12280 Posts
user info
edit post

^^^thats not remotely like svg but while on the topic of png

png8 work just fine for transparency in IE6+ and png24 work in IE7+ FF2/3 etc

that script to get png24 to work in ie6 is so performance intensive that its useless because it ruins the whole user experience.

1/7/2009 10:40:44 PM

Tiberius
Suspended
7607 Posts
user info
edit post

short of something like translating SVG to dojox.gfx, I haven't been able to find a feasible way to do this

http://www.thinkvitamin.com/features/design/create-cross-browser-vector-graphics

interestingly enough SVG appears to be an XML format, so you could presumably load it into the DOM and then traverse that node replacing the SVG elements w/ dojo.gfx elements

sounds like a lot of work, tho

[Edited on January 8, 2009 at 9:20 AM. Reason : in fact that may not be necessary, it looks like dojox.gfx might even support SVG]

1/8/2009 9:01:49 AM

Tiberius
Suspended
7607 Posts
user info
edit post

damn, after a bit of consideration I'm thinking about porting my Prototype code over to Dojo, classing appears to be handled in much the same way, and dojox.gfx appears to be the Final Solution to the Browser Graphics Problem

[Edited on January 8, 2009 at 10:16 AM. Reason : .]

1/8/2009 9:48:47 AM

darkone
(\/) (;,,,;) (\/)
11609 Posts
user info
edit post

If you don't want your end users to have a SVG plugin, you'd best start writing a script to generate PNG files from your SVG at the browser requested resolutions.

I've made plenty of SVG maps before and I always used inkscape to generate the PNG files I needed for web use at the different resolutions I needed.

1/8/2009 11:59:35 AM

evan
All American
27701 Posts
user info
edit post

^^dojo is awesome but it's HUGE

1/8/2009 12:12:41 PM

RSXTypeS
Suspended
12280 Posts
user info
edit post

been playing around with SVG all day...this shits awesome. Saved the floor plans from a DXF to SVG in Illustrator and it looks brilliant in FireFox. Now I got to setup my VM so I can test in IE6 and begin the painful process of trying to get native support. :-/

1/8/2009 5:46:20 PM

Tiberius
Suspended
7607 Posts
user info
edit post

^^dojo is also the framework behind GWT and is thus cached on Google and AOL's content delivery networks, so it's not my problem

you can't get more perfect than this:

http://o.aolcdn.com/dojo/1.2/dojo/dojo.xd.js
http://ajax.googleapis.com/ajax/libs/dojo/1.2/dojo/dojo.xd.js

1/8/2009 6:19:47 PM

RSXTypeS
Suspended
12280 Posts
user info
edit post

I'm looking at OpenLayers now so before I start looking at DoJo can someone answer a dojo question and save me a lot of headache...

If i have a map in an SVG format will dojo 'redraw' the map for me and work in IE6? I need a solution where I can take an outside source (SVG) and end of day work in IE6 either by parsing it and redrawing it or whatever needs to be done.

1/9/2009 12:42:32 PM

 Message Boards » Tech Talk » SVG support in IE/FF WITHOUT a plugin. Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.