473,324 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

SGV

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
Dec 16 '06 #1
11 1771
VK
Aaron Gray wrote:
I want to dynamically create SVG in an embedded IFRAME.
Why IFRAME if dynamically created? Use <DIVthen.
Can this be done. And how do I go about it.

An exapmle would be great.
To get the grounds can be useful:

<http://groups.google.com/group/mozilla.dev.tech.svg/msg/3febd009841bb6d3>
<http://groups.google.com/group/mozilla.dev.tech.svg/msg/9b23435b053b19f0>

Dec 16 '06 #2
To get the grounds can be useful:
>
<http://groups.google.com/group/mozilla.dev.tech.svg/msg/3febd009841bb6d3>
<http://groups.google.com/group/mozilla.dev.tech.svg/msg/9b23435b053b19f0>
Thats great on FF and Opera but 'document.createElementNS()' is not
supported on IE.

Aaron
Dec 16 '06 #3
BTW. I am using the Adobe SVG plugin.

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

Aaron
Dec 16 '06 #4
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
Dec 17 '06 #5
Aaron Gray wrote:
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/

--
Cameron McCormack, http://mcc.id.au/
xmpp:he****@jabber.org â–ª ICQ 26955922 â–ª MSN ca*@mcc.id.au
Dec 17 '06 #6
>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/
Okay, great :)

Aaron
Dec 17 '06 #7
Hi,

Aaron Gray wrote:
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
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Dec 17 '06 #8

Laurent Bugnion wrote:
Hi,

Aaron Gray wrote:
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.
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.
--
Rob

Dec 18 '06 #9
Hi Rob,

RobG wrote:
>
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.
>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).
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
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Dec 18 '06 #10
Laurent Bugnion wrote:
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/sv******.../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.

--
Cameron McCormack, http://mcc.id.au/
xmpp:he****@jabber.org â–ª ICQ 26955922 â–ª MSN ca*@mcc.id.au
Dec 18 '06 #11
Hi,

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

http://www.mail-archive.com/sv******.../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.
That's a good news. Thanks for sharing.

Greetings,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Dec 18 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.