SGV

A

Aaron Gray

I want to dynamically create SVG in an embedded IFRAME.

Can this be done. And how do I go about it.

An exapmle would be great.

Many thanks in advance,

Aaron
 
A

Aaron Gray

BTW. I am using the Adobe SVG plugin.

I cannot find any documentation on Adobe SVG on there site. :(

Aaron
 
A

Aaron Gray

BTW. I am using the Adobe SVG plugin.
I cannot find any documentation on Adobe SVG on there site. :(

But some good examples though :)

http://www.adobe.com/svg/examples.html

You can embed JavaScript in SVG files then embed the .SVG files in an HTML
file and then call methods in the SVG file.

SVG files can also be compressed (ZIPed) to give '.svgz' files, on both IE
and Opera but unfortunately these are not supported by FireFox :(

Aaron
 
C

Cameron McCormack

Aaron said:
SVG files can also be compressed (ZIPed) to give '.svgz' files, on both IE
and Opera but unfortunately these are not supported by FireFox :(

Firefox should support gzipped (not ZIPped) SVG documents, but you'll
have to make sure your web server is sending the right headers. See:

http://jwatt.org/svg/authoring/
 
L

Laurent Bugnion

Hi,

Aaron said:
BTW. I am using the Adobe SVG plugin.

I cannot find any documentation on Adobe SVG on there site. :(

Aaron

Adobe is not supporting the SVG plug-in anymore. They stop distributing
it per 01.01.2007, and drop support per 01.01.2008. Officially, it's
because there are 3rd party plug-ins available (though not for IE), but
it's rather because SVG is being concurrenced by Adobe's own MXML
format, and of course Microsoft's XAML.

If I were you, I wouldn't put too much effort in learning SVG...

Greetings,
Laurent
 
R

RobG

Laurent said:
Hi,



Adobe is not supporting the SVG plug-in anymore. They stop distributing
it per 01.01.2007, and drop support per 01.01.2008. Officially, it's
because there are 3rd party plug-ins available (though not for IE), but
it's rather because SVG is being concurrenced by Adobe's own MXML
format, and of course Microsoft's XAML.

Wasn't the original purpose of SVG to provide a single standard at a
time when Macromedia and Microsoft were creating VML and Sun and Adobe
were creating PGML?

MXML seems to be explicitly a server-side technology that uses Adobe's
Flex product to generate a Flash object and therefore requires a Flash
plugin on the client to view. Flex supports SVG at the server, so
Adobe hasn't dropped support for SVG altogether. However, it makes
commercial sense that Adobe don't want to undermine their Flash plugin
with a free SVG plugin that obviates use of their for-cost Flex server
product.

XAML also seems to be primarily for use on the server with .NET, and
hence is tied to that technology. I can't see that it is a suitable
for web browsers at all.

SVG can be used for server or client and is not dependent upon any
proprietary technology.

If I were you, I wouldn't put too much effort in learning SVG...

SVG is supported natively by a number of browsers (though not IE or
Safari). Time learning it might be well spent, as XAML will probably
never make it into the mainstream web browser space (is it supported by
IE even?) and anyone using MXML and Flex is probably already using
Flash.
 
L

Laurent Bugnion

Hi Rob,
Wasn't the original purpose of SVG to provide a single standard at a
time when Macromedia and Microsoft were creating VML and Sun and Adobe
were creating PGML?

That was the idea. Unfortunately, it never really made a breakthrough
amongst developers. We used SVG intensively in our last project, and you
can do very nice things with it. But the lack of 3D and multimedia make
that it's outdated. It would need a strong rework and additions, and
Adobe is not going to do it (so probably noone else will).
MXML seems to be explicitly a server-side technology that uses Adobe's
Flex product to generate a Flash object and therefore requires a Flash
plugin on the client to view. Flex supports SVG at the server, so
Adobe hasn't dropped support for SVG altogether. However, it makes
commercial sense that Adobe don't want to undermine their Flash plugin
with a free SVG plugin that obviates use of their for-cost Flex server
product.

MXML is Adobe's answer to XAML. I am not the best person to judge it,
having only read about it. I think that naming it "server-side
technology" is not accurate, though. It's going to be XML and JavaScript
running in the Flash plug-in, on the client.
XAML also seems to be primarily for use on the server with .NET, and
hence is tied to that technology. I can't see that it is a suitable
for web browsers at all.

Not at all. XAML is actually destined to run on the client (are you
confusing with ASP.NET?). There are two main possibilities:

- XBAP (XAML browser application): The application is served by a web
server to the client. IE receives the XBAP file and due to the MIME
type, starts an embedded host PresentationHost.exe). XBAPs are RIAs
(rich internet applications). Their singularity is that the full .NET
framework is required on the client. Because it uses the full .NET
framework, it allows writing the code-behind in C# (for example, using
..NET to make web service calls, etc...). The front-end is XAML.
Currently, XBAP applications are not able to interact with the web
browser (but that should change in next versions). You cannot really
compare XBAPs with anything existing yet, because it's not embedded in
HTML code (like applets are), but it's also not standalone (it's not
installed, and runs in a sandbox). It's a new concept.

- WPF/E (Windows Presentation Foundation Everywhere): This is a subset
of WPF (no 3D, that's the main difference) which runs in the browser in
a plug-in. If you really want, you can compare it with Flash or Java
applets. The front-end is XAML. The code-behind, in the current CTP
version, is JavaScript only. In the V1, it should also be possible to
use C# against a subset of the .NET framework. WPF/E can interact fully
with the web browser, using JavaScript as a medium. The XAML DOM is made
fully available to JavaScript.

Whichever solution you choose, WPF is clearly running on the client. In
fact, you don't need to install anything on the web server to serve XBAP
or WPF/E applications (for XBAP, you merely need to add 4 MIME types).
You can serve XBAPs or WPF/E components from non-Microsoft web servers too.
SVG can be used for server or client and is not dependent upon any
proprietary technology.

Except that with Adobe not distributing their plug-in anymore, there is
no viable solution to make it work in IE. People who know me on this
forum know that I am a big fan of cross-browser, non proprietary
solutions, but I also work for a firm selling products, and if I tell
them that I cannot support a browser that 98% of our customers use (I am
not making the number up, our marketing does ;-), it's clearly not a
viable technology.
SVG is supported natively by a number of browsers (though not IE or
Safari).

XAML (the WPF/E version) needs a plug-in to run in Firefox, Safari and
soon Firefox on Linux. It runs natively in IE. So it actually runs in
more browsers than SVG does, already.

The XBAP version currently runs in IE only (it was released in November
2006 only, and Microsoft is interested in making it run in other
browsers/OS too, but there are issues. For example, 3D is relying on
hardware acceleration). I heard that Mozilla was interested in making
XAML native in Firefox too, but I don't know if that's only wishful
thinking. Anyway, it's going fast.
Time learning it might be well spent,

Time leaning XML based languages, absolutely, but not SVG IMHO. XAML can
be seen as a further development of SVG, many concepts are similar, but
the abilities go much further. If working with Microsoft's products is
not acceptable for reasons I don't want to discuss, MXML is the best
alternative. SVG made its time, it was great, but now it's time to move on.
as XAML will probably
never make it into the mainstream web browser space (is it supported by
IE even?)

I recommend you take some time and review XAML abilities and support. I
see it as a huge breakthrough. I think you're underestimating the
meaning of XAML for internet applications (web and RIA).
and anyone using MXML and Flex is probably already using
Flash.

I am not sure what you mean. Flash and MXML, though they run in the same
plug-in, are not developed using the same tools.

Greetings,
Laurent
 
C

Cameron McCormack

Laurent said:
Adobe is not supporting the SVG plug-in anymore. They stop distributing
it per 01.01.2007, and drop support per 01.01.2008. Officially, it's
because there are 3rd party plug-ins available (though not for IE), but
it's rather because SVG is being concurrenced by Adobe's own MXML
format, and of course Microsoft's XAML.

Luckily Adobe has just announced that they will make their plugin
available indefinitely:

http://www.mail-archive.com/[email protected]/msg10838.html

It still won't be maintained any more, but at least that will help
people with a transition to other, upcoming plugins (like the Renesis
one) or native browser support.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,042
Latest member
icassiem

Latest Threads

Top