Focal Point
Displaying SVG through WebFocus

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2091077331

April 29, 2004, 03:07 PM
<Bandi>
Displaying SVG through WebFocus
I am trying to pass svg code in between the -HTMLFORM tags. But the browser does not detect it to be svg and just displays it as a normal XML code.

Is there a way to pass the MIME TYPE as SVG to the browser so that it could interpret the svg code?

Thanks,
Bandi
April 29, 2004, 03:29 PM
<Pietro De Santis>
If there's nothing else in the HTMLFORM, the following may work, but I'm not sure as I've never worked with SVG.


-HTMLFORM BEGIN





-HTMLFORM END

This message has been edited. Last edited by: <Mabel>,
April 29, 2004, 03:42 PM
<Bandi>
But I am trying to do something like this -



-HTMLFORM BEGIN


style="stroke:black;fill:blue;"/>

-HTMLFORM END

Bcause I want to generate my own svg tags and include them. And I am working on SelfService application, so I cannot access the file source path.

This message has been edited. Last edited by: <Mabel>,
April 29, 2004, 06:09 PM
<Pietro De Santis>
Maybe putting your svg code in a separate html and using an iframe within the -HTMLFORM might work.
August 09, 2004, 01:58 PM
Muurinen
Try adding the svg doctype declaration after the xml declaration.




< !DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">

Hope this helps...
_______________________________
Mikko

This message has been edited. Last edited by: <Mabel>,