GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
SVG and Firefox


https://support.genopro.com/Topic10195.aspx
Print Topic | Close Window

By MarkS - Friday, February 10, 2006
Firstly - congratulations on the beta product and the excellent report generator. I have seen a number of posts relating to the SVG viewer with Firefox and unfortunately I don't seem to have had the same experience as others. It works great with IE but Firefox continually asks me what to do with the file (download, run etc) whenever the pane with the family tree diagram is opened. I'm using firefox 1.5.0.1 the latest version. its supposed ot have the SVG built in but it doesnt seem to work native or with the Adobe addin. Has anyone else had this problem - it's not just one PC either, I have several with the same problem. Any help would be appreciated.
By GenoProSupport - Friday, February 10, 2006
Ron is the guru on this issue.  I remember him telling me about all the problems he encountered with SVG for various versions of browsers and operating systems... Since then, I forgot the specific details so I cannot give you a reply myself.
By genome - Friday, February 10, 2006
111774 (2/10/2006)
I have seen a number of posts relating to the SVG viewer with Firefox and unfortunately I don't seem to have had the same experience as others. It works great with IE but Firefox continually asks me what to do with the file (download, run etc) whenever the pane with the family tree diagram is opened. I'm using firefox 1.5.0.1 the latest version. its supposed ot have the SVG built in but it doesnt seem to work native or with the Adobe addin. Has anyone else had this problem - it's not just one PC either, I have several with the same problem. Any help would be appreciated.

Could you check that the Firefox built-in SVG plugin is enabled? To do this type about:config in the Firefox address bar and click the GO button. A list of the Firefox preference settings is displayed. Scroll down to the svg.enabled line and check it is on, i.e. 'true', if not double click the line to toggle it. Also the report must have been generated using GenoPro Beta 15 or above, preferably the latest Beta 15f.

By MarkS - Tuesday, February 14, 2006
Ok - I have checked that Firefox SVG is enabled. This obviously happens by default on install. I have tried all options a) built in SVG (b) Adobe addin (c) both . The outcome seems the same it asks me what I want to do with the file or Firefox hangs. It doesn't seem consistent - I have on one occasion got a map diagram but it would not move or scale. I'm running XP SP2 plus latest patches. This of course may be a Firefox problem rather than Genopro!! I think I will try to find some other SVG application and see how Forefox behaves. I notice that the SVG files have the extension SVGZ - is it possible that Firefox will only deal with SVG extensions? which is why it asks what I want to do with the file?
By genome - Tuesday, February 14, 2006
This is puzzling me. When viewing a report from a local disc in Firefox it should open the uncompressed SVG files i.e. .svg not .svgz. The skin template genomap.htm contains the following lines
var agt=navigator.userAgent.toLowerCase();
is_ie=(agt.indexOf("msie")!=-1);
<%[
Report.WriteFormattedLn "var strFileSvg='{}';", strFileSvg

If Report.Parameters("fCompressSvg")="Y" Then
 Report.WriteLn "if (is_ie || document.location.href.indexOf('file://')==-1) strFileSvg = '../genomapsz/' + strFileSvg + 'z';"
End If

that should generate each genomapn.htm file with the lines
var agt=navigator.userAgent.toLowerCase();
is_ie=(agt.indexOf("msie")!=-1);
var strFileSvg='genomapn.svg';
if (is_ie || document.location.href.indexOf('file://')==-1) strFileSvg = '../genomapsz/' + strFileSvg + 'z';
that I think should mean that .svgz is only used for IE or when the URL doesn't contain file://. Could you add the line
alert('agent:'+agt+' href:'+document.location.href);
after
is_ie=(agt.indexOf("msie")!=-1);
in your skin template genomap.htm file and then generate the report, access the SVG and let me know what the alert dialog box contains?
By Ripp - Tuesday, February 14, 2006
Hi Ron, my experience has been the same. A locally hosted report displays the svg fine in firefox. However, when it is remotely hosted Firefox tries to save the .svgz file. When I added in

alert('agent:'+agt+' href:'+document.location.href);


I got this alert

agent:mozilla/5.0 (windows; u; windows nt 5.1; en-us; rv:1.8.0.1) gecko/20060111 firefox/1.5.0.1
href:http://lucasreunion.up.md/genomaps/genomap0.htm?x=-2860,y=-150,highlight=true

after which Firefox wishes to save the genomap0.svgz again

Ripp

By genome - Tuesday, February 14, 2006
114817 (2/14/2006)
Hi Ron, my experience has been the same. A locally hosted report displays the svg fine in firefox. However, when it is remotely hosted Firefox tries to save the .svgz file.

Ripp

Your problem is that your Apache Web Server is not correctly configured for serving .svgz pages. It is serving them with Content-Type: text/plain and without any Content-Encoding: header. Visit http://wiki.svg.org/index.php?title=Server_Configuration for instrutions on how it should be configured.

Alternatively you can try generating your report with just uncompressed .svg images that will be slower to download. To do this change the skin template file Config.xml parameter fCompressSvg="Y" to fCompressSvg="N" and then generate the report again.

Your Web Server may still need configuring for .svg pages.

By Ripp - Wednesday, February 15, 2006
Yes that helps me, Thanks
By MarkS - Saturday, February 18, 2006
Ron, OK - As requested I have entered the code in the skin template genomap.htm generated the report, ftp'd it up to the server and looked at it with Firefox (SVG enabled, Adobe add-in not selected i.e. it is set to use Firefox built in viewer to deal with SVG files.

Ok message box before the change was this - just asking what I should do with the file


Next I made the change and checked to see that it all still worked with Internet Explorer, the alert line I inserted produced this


After clicking OK, the tree diagram loaded fine into IE

Then I tried it with Firefox , this message appeared



On clicking OK then we came back to the "what do you want to do with htis fle" message as expected.

As I don't know enough to interpret the alert message fully I hope this helps.
- Mark
By genome - Saturday, February 18, 2006
Looks like your problem is the same as Ripp, that is your web host, hydrogen, does not understand .svgz files and sends the file with incorrect HTTP header information. Adobe's SVG viewer ignores headers and looks at the data instead, whereas Firefox strictly adheres to the information it is given in the HTTP headers, and so doesn't know what to open it with, hence the prompt. If you are unable to reconfigure your server as per recommendations in http://wiki.svg.org/index.php?title=Server_Configuration, then follow my earlier suggestion to generate the report with just uncompressed SVG files. I can't be certain that this the problem without sight of the header information.
If you want to check this then headers can be captured by installing and using a Firefox extension, Live HTTP Headers.
You should remove the alert line from genomap.htm now. I only suggested that because I initially thought you were accessing the report from a local disc and not from a web server.Ermm
By GenoProSupport - Saturday, February 18, 2006
I wrote an ISAPI filter (DLL) to handle Compressed SVG (svgz) for Internet Information Services (IIS).  If you are running IIS, let me know and I will send you the DLL.  I plan to publish this DLL, however I am waiting a few more days for testing purpose.
By MarkS - Sunday, February 19, 2006
I have made the changes to the webserver by inserting the values suggested in the HTTP Headers (server is IIS V5.1 running on XP) I also changed the Mime map to include svg and svgz extensions (it was not clear whether I had to do the mime map as well but it was mentioned in a number of posts). I checked the header with web-sniffer.net and it looks like the correct value is there. However I'm not an expert on this - so I include below the output from the Firefox header viewer plugin that you suggested. The image/svg+xml: gzip header line appears to be there... but there maybe someting else wrong thta you can see You will have gathered by now that I still get the Firefox "what shall I do with this file" window. Is there anything else I can try?


http://hydrogen/ancestors/toc_genomaps.htm

GET /ancestors/toc_genomaps.htm HTTP/1.1
Host: hydrogen
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://hydrogen/ancestors/heading.htm

HTTP/1.x 200 OK
Server: Microsoft-IIS/5.1
X-Powered-By: ASP.NET
image/svg+xml: gzip
Date: Sun, 19 Feb 2006 14:14:42 GMT
Content-Type: text/html
Accept-Ranges: bytes
Last-Modified: Sat, 18 Feb 2006 15:08:27 GMT
Etag: "216a9f2b9d34c61:99a"
Content-Length: 2999
By GenoProSupport - Sunday, February 19, 2006
Can you return me the HTTP response for the file genopmap0.svg and/or genomap0.svgz?

PS: You need to restart the service IIS after changing the MIME types... (just in case you don't know).

You are welcome to download the ISAPI filter for SVG Compression at http://www.genopro.com/internet/server-configuration/IsapiForSvgCompression.dll (28 KB).  The website http://familytrees.genopro.com/ uses this ISAPI filter to serve .svgz files.  Eventually, I will write a "how-to" with the step-by-step instructions to install an ISAPI filter on a website.

By MarkS - Sunday, February 19, 2006
Ron

I realised on further investigating that I probably missed the most important part of the Live Header output - here is the bit about the svg - sorry

http://hydrogen/ancestors/genomaps/genomap1.htm?x=-4,y=0,highlight=false

GET /ancestors/genomaps/genomap1.htm?x=-4,y=0,highlight=false HTTP/1.1
Host: hydrogen
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://hydrogen/ancestors/toc_genomaps.htm
If-Modified-Since: Sat, 18 Feb 2006 15:08:25 GMT
If-None-Match: "312ed42a9d34c61:996"

HTTP/1.x 304 Not Modified
Server: Microsoft-IIS/5.1
Date: Sun, 19 Feb 2006 19:23:18 GMT
X-Powered-By: ASP.NET
image/svg+xml: gzip
Etag: "312ed42a9d34c61:99a"
Content-Length: 0


http://hydrogen/ancestors/genomapsz/genomap1.svgz

GET /ancestors/genomapsz/genomap1.svgz HTTP/1.1
Host: hydrogen
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://hydrogen/ancestors/genomaps/genomap1.htm?x=-4,y=0,highlight=false
If-Modified-Since: Sat, 18 Feb 2006 15:08:23 GMT
If-None-Match: "1433299d34c61:996"

HTTP/1.x 304 Not Modified
Server: Microsoft-IIS/5.1
Date: Sun, 19 Feb 2006 19:23:18 GMT
X-Powered-By: ASP.NET
image/svg+xml: gzip
Etag: "1433299d34c61:99a"
Content-Length: 0

By MarkS - Sunday, February 19, 2006
IIS was restarted. Thanks for the offer of the download - I will try it. I hope I havn't disturbed your Sunday too much!!. All your help i much appreciated
By GenoProSupport - Sunday, February 19, 2006
MarkS (2/19/2006)
I hope I havn't disturbed your Sunday too much!!. All your help i much appreciated

If I wish to take the Sunday off, I stay away from my computer Smile.

By the way, the response code value for genomap1.svgz is 304 (HTTP/1.x 304 Not Modified).  Can you flush the cache and try again?  I need a full HTTP response 200 (OK) so I can check what is being returned by the server.

By genome - Sunday, February 19, 2006
Took a closer lok at this problem myself as I managed to borrow an XP Pro machine. In IIS management console I added .svg & .svgz to Mime Map as image/svg+xml. To do this right click on 'Web Sites' folder, slect Properties, then HTTP Headers and then File Types. Click New Type and add both .svg & .svgz with Content Type image/svg+xml.

I then made genomapsz a virtual directory, pointing to the report directory genomapsz folder. Its parent folder, mine was FamilyHistory, MarkS's is ancestors, was already a virtual directory. Right click on the genomapsz virtual directory from the IIS console, click Properties, then HTTP Headers. Under Custom Headers click Add and enter Content-Encoding:  gzip. click OK and restart IIS. With Firefox, clear the cache using CTRL/Shift/Delete, uncheck 'Browsing History', ensure Cache is checked and then click 'Clear Private Data Now' button. Instead of following this paragraph you can install Dan's ISAPI filter instead.

It all worked fine except I discoverd a new bug. When trying to navigate from one SVG genomap to another, using the blue internal hyperlinks, I got 'page not found'. It only occurs when using Firefox to access a HTTP based report. To fix this, change skin template genomap.svg as follows:

change line 272

strAction="cursor=""pointer"" " & Util.FormatString(" onclick=""displaylink('genomap{}.htm?x={},y={},highlight=true','map');""", ilink.position.genomap.index, ilink.position.x, ilink.position.y)
to
strAction="cursor=""pointer"" " & Util.FormatString(" onclick=""displaylink('../genomaps/genomap{}.htm?x={},y={},highlight=true','map');""", ilink.position.genomap.index, ilink.position.x, ilink.position.y)

Alternatively a revised copy of genomap.svg is attached. Remove the extra .txt extension after download and replace the current file in your skin templates folder. A note to Dan - could you please include this change in the next release.

By maru-san - Monday, February 20, 2006
Ron (2/20/2006)

It all worked fine except I discovered a new bug. When trying to navigate from one SVG genomap to another, using the blue internal hyperlinks, I got 'page not found'. It only occurs when using Firefox to access a HTTP based report.


Thanks Ron for finding this bug also. I realized this bug recently when I uploaded to familytrees on genopro and could not link to the other SVG map.

Just started a few days to work on a japanese Windows XP and realized following problem. Wanted to print out the screen (as layed-out), showing one individual and the SVG map, however the font comes out as a big mess, whereas the symbols remain the size as shown on the screen. The font comes out approximately 2 to 4 times as big.
By MarkS - Monday, February 20, 2006
Ron and Dan - thank you for your patience and help - it all works!

Just for the record, and perhaps to help others, the errors I made were:-

  1. Not forming the HTTP Header correctly - this is ambiguous in the wiki reference. Ron's directions were much more explicit. I did not have the words Content-Encoding in the Custom Header Name field (I had image/svg-xml). I had the value field cocorrectnd the mime headers correct.
  2. I got confused by the IIS HTTP Custom Headers hierarchy - it's not clear when values refer to sub directories. As Ron directed just making the change for the genomapsz directory works best.
  3. Probably obvious - but remembering to clear the cach on the client.

I will install the revised genomap.svg file to solve the linking problem.  One further thing - Firefox appears now to work with both the native svg function and with the Adobe addin - all be it much slower in both cases than IE.

Thanks again for your help (and my education) - this is one of the best software applications I have come across.

Mark

By appleshaw - Monday, February 20, 2006
Different comment on use of svg. The latest version has included more easily understood controls for moving around and zooming the map. The standard Adobe controls were adequate and easy to use once you had found them.
I first used these controls after loading my tree to familytrees.genopro. This then showed up a limitation, which may also affect the Adobe controls. When I first clicked on an arrow to move the display, nothing happened. After several clicks it then started a series of minor moves. Obviously it takes some time for the instruction to cross the Atlantic and for the data to return.

Is it possible to cache the data to speed up this process? Unfortunately my ISP is having problems, so I can not access a UK site to make comparisons of the old system and also of distance.

Finally, belated congratulations on the setting up and operation of familytrees. The initial upload of files took less than 10 minutes (plus a bit for pictures). When I changed a couple of files it took hardly any time at all, only sending files that had been changed. Impressive; to load the same files with ftp to my ISP takes 3 to 4 times as long (if not more)
By V.L.o - Monday, February 20, 2006
Just FYI, I've been testing new Netscape 8.1 on my comp, and it's altough it  (supposedly) has a firefox engine, it's uncapable of viewing SVG. I tried opening SVG test page, and it reports missing plug-in, but won't download...
By GenoProSupport - Tuesday, February 21, 2006
appleshaw (2/20/2006)
After several clicks it then started a series of minor moves. Obviously it takes some time for the instruction to cross the Atlantic and for the data to return. Is it possible to cache the data to speed up this process?

The clicks on SVG are local scripts.  Once the SVG (or svgz) file is downloaded, everthing runs locally.

Finally, belated congratulations on the setting up and operation of familytrees. The initial upload of files took less than 10 minutes (plus a bit for pictures). When I changed a couple of files it took hardly any time at all, only sending files that had been changed. Impressive; to load the same files with ftp to my ISP takes 3 to 4 times as long (if not more)

Thanks.  The new update, Beta 15g, display better statistics, including unmodified files.  The good news is there is some room for improvement.  I am confident I can speed up the report generator by a factor of 2x to 3x, depending on the type of report.  Since I have to focus on releasing version 2.0, I will do those optimizations after GenoPro 2.0 has been localized and the new AutoArrange completed.

By appleshaw - Tuesday, February 21, 2006
I have found that there is a big difference in panning performanace when using IE6 or FireFox1.5. Using IE (after downloading SVG Viewer 3.0) the panning is fine.

Using FireFox it is dreadfully slow and almost unusable. I have copied both the Adobe dlls to the Firefox plugin directory, and also tried renaming them in case they conflict with FireFox.

I have not been able to check the performance of earlier versions as my ISP has lost all of my web files!. Local versions did not help either.

Any suggestions out there?
By maru-san - Tuesday, February 21, 2006
Have reported this once before:

The last character (japanese, vertical) at the bottom is not in line with the upper ones.
By genome - Wednesday, February 22, 2006
appleshaw (2/21/2006)
I have found that there is a big difference in panning performanace when using IE6 or FireFox1.5. Using IE (after downloading SVG Viewer 3.0) the panning is fine.

Using FireFox it is dreadfully slow and almost unusable. I have copied both the Adobe dlls to the Firefox plugin directory, and also tried renaming them in case they conflict with FireFox.
I agree the performance of Firefox with its built-in SVG engine is poor but I took the view that something is better than nothing. It is implemented using a Javascript and as Dan says has nothing to do with the speed of the server its was loaded from.  I am still looking for alternative ways of panning with Firefox as and when I get the time. As I have mentioned before, if you hold down the mouse button over the green direction arrow the 'speed' will appear to increase as biggers jumps are made. If you just click up and down this effect is lost. Also the fewer Drawing objects on each GenoMap the better the speed.

I did try a zoom and pan Firefox extension http://www.treebuilder.de/zoomandpan/index.htm but it does not work with frames and its performance is not any better.  Maybe the Mozilla guys will look at improving performance once they have implemented the full SVG 1.1 spec.

 If you use the Adobe SVG Viewer with Firefox I believe you have to use the 6.0 beta as the ASV 3 plugin does not work. As well as copying the plugin files you need to disable the built-in Firefox engine. (Type about:config in the location bar and scroll down to find svg.enabled. double click to toggle). However if you do use Adobe with Firefox the direction arrows and the zoom buttons do not work as Adobe does not recognize the Firefox Javascript engine. You will therefore need to use Adobe's built-in zoom & panning.

I also intend to see if a Flash solution is possible if I can get Adobe (who now own MacroMedia) to give me the .SWF file spec.

By genome - Wednesday, February 22, 2006
V.L.o (2/20/2006)
Just FYI, I've been testing new Netscape 8.1 on my comp, and it's altough it  (supposedly) has a firefox engine, it's uncapable of viewing SVG. I tried opening SVG test page, and it reports missing plug-in, but won't download...

I just tried Netscape 8.1 but cannot find any reference to a builtin SVG engine. It probably uses the old 1.x Firefox build and not the 1.5.x build that has SVG support. I tried running it with Adobe SVG Viewer (ASV) by copying Adobe's 6.0 beta plugin files to Netscape's plugin folder and although it opened Adobe's test page http://www.adobe.com/svg/viewer/install/svgtest.html, as you say with a GenoPro report it prompts for ASV install. The Report uses Adobe's own code to check if ASV is installed (svgcheck.js) and I discovered that a change is required. i.e.

before line 113 that contains:
       (navigator.mimeTypes["image/svg-xml"]&&navigator.mimeTypes["image/svg-xml"].enabledPlugin!=null);
insert the line
       (navigator.mimeTypes["image/svg+xml"]&&navigator.mimeTypes["image/svg+xml"].enabledPlugin!=null)||

 otherwise overwrite the existing file in your skin folder with the revised script attached. The earlier comments about ASV under Firefox also apply to Netscape.

Another note to Dan to include the attached in the next release please.

By GenoProSupport - Wednesday, February 22, 2006
I made an update of svgcheck.js.  If you download Beta 15g again, you will get the fix.
By appleshaw - Saturday, February 25, 2006
If you are having problems displaying your .svg tree diagram from your own ISP web site, then the steps I have taken, following Ron's guidance, may give pointers. If your web is based on an Apache server, and they are in a majority, then this may solve your problems.

First identify the server. I used IDServe.exe from http://grc.com/id/idserve.htm. Paste the URL you use for your site into the program and it will tell you which system provides the host.

If it is Apache then I used the following file posted into the root of my web space.

AddType image/svg+xml .svg
AddType image/svg+xml .svgz
AddEncoding gzip .svgz


mod_gzip_on No



There was a slight problem with my Ftp program as the filename has to be ".htaccess". When I first transferred the file nothing seemed to happen. I then renamed it on my PC to a conventional file type, eg htaccess. htm which transferred with no problem. I then renamed the file to .htaccess and it appeared to disappear (perhaps I should say disappeared from sight). However it is obviously still there as the files can now be seen without the 'Parsing error' I had before.

If your web server is not Apache then you will need to look at the site given by Ron and follow a similar course. Go to http://wiki.svg.org/index.php?title=Server_Configuration.

Finally I think that FireFox 1.5 does not need any of the Adobe plug-ins. I have tried various combinations of the two Abobe dlls and also run without them. It does not seem to matter if they are there or not. However do not disable svg from about:config if the plug-ins are not present. A sure way to crash FireFox the second time you access an svg file
By PEH - Wednesday, November 29, 2006
I also had a problem viewing svgz files. I may be unique in that my tree is on a Zeus web server http://www.zeus.com/products/zws/, which does not support the AddEncoding htaccess directive. For information, I eventually got svgz to work with the following .htaccess directives:
AddType image/svg+xml svg
AddType image/svg+xml svgz
<files *.svgz>
Header Set Content-Encoding gzip
</files>
By Sonnabend - Tuesday, January 30, 2007
I am still having trouble getting SVGZ to display correctly under Firefox on an Apache server. When I add the following lines to a .htaccess file, I still get the error below:

.htaccess

# MIME Types

AddType image/svg+xml .svg
AddType image/svg+xml .svgz
AddType application/x-javascript .es
AddType application/octet-stream .gno
AddType image/x-emf .emf
AddType image/djvu .djvu


mod_gzip_on No



Error:

XML Parsing Error: not well-formed
Location: http://www.MYSITE.COM/report1/genomapsz/genomap38.svgz
Line Number 1, Column 1:�
^


Some of the code I pasted above (see FilesMatch lines on this site) is not displaying correctly on this forum.
By GenoProSupport - Tuesday, January 30, 2007
It appear the server is unable to read compressed SVG files.  An SVGZ file is a GZip-compressed SVG file.
By Sonnabend - Tuesday, January 30, 2007
(edit: removed initial response)

Whoops, I overlooked one line. The full .htaccess section should be:


# MIME Types

AddType image/svg+xml .svg
AddType image/svg+xml .svgz
AddType application/x-javascript .es
AddType application/octet-stream .gno
AddType image/x-emf .emf
AddType image/djvu .djvu
AddEncoding gzip .svgz <---this was what I missed


mod_gzip_on No


By panther - Friday, August 3, 2007
Well, I hate to start this all over again, but, unless there is an answer somewhere else that I may have missed or didn't understand (very possible), I can not get SVG to work in Firefox. I have the latest version of GenoPro. It is enabled.

It won't work on my computer, let alone on my website. It works OK with Internet Explorer in both places. How do I get it to work on Firefox? Is this something that you are going to fix someday or is it our personal problem that you/we can't fix?

I dislike IE and tell everyone to use Firefox so I'd really like to get it to work.
By appleshaw - Friday, August 3, 2007
Which version of Firefox are you using? The early version 1. did not have SVG support and if you went for upgrade you stayed with version 1.
Only after 1.5 was SVG support enabled and the current version is 2.0.0.6. Google Firefox 2, or Mozilla
By panther - Wednesday, August 8, 2007
I'm using version 2.0.0.9. So I must be doing something wrong, I suppose.
By panther - Wednesday, August 8, 2007
Sorry. I meant 2.0.0.6 Firefox and 2.0.0.9 GenoPro.
By jcmorin - Wednesday, August 8, 2007
The version of GenoPro do not affect the SVG.

For instance are you able to view this file?

http://familytrees.genopro.com/harry%2Dpotter/genomaps/genomap2.htm?x=454,y=-1292,highlight=true

By panther - Wednesday, August 8, 2007
Yes I could.
By panther - Tuesday, August 14, 2007
OK..........I could see that link but my tree still doesn't work.
Do I have to go in and re-write something?
Am I missing dll files?
Did I turn something on/off in the program that I shouldn't have?
I don't have Windows XP. Is that the problem?
Thank you
By genome - Tuesday, August 14, 2007
If you can see one SVG page then it means your Firefox is configured ok. Is the SVG frame blank or do you get any error message? If so what is it? If you are using Firefox 2+ then you should have 'Error Console' on the Tools Menu.  Are any errors reported there? It is possible that the skin does not encode some unusual characters properly causing the page not to render.
By panther - Thursday, August 16, 2007
A download box pops up.
It says, "You have chosen to open, genomap0.svgz, which is a: SVG Document from: my site".

Then I have the choice to open with Firefox or Save to Disk. If I choose to open, another tab opens up with the following in a box:

XML Parsing Error: not well-formed
Location: file:///C:/DOCUME~1/PV/LOCALS~1/Temp/genomap0.svgz
Line Number 1, Column 1:
�
^

Hope this means something to you. I did this at my site not my computer.
I just checked again and it works just fine with IE.
By genome - Friday, August 17, 2007
In your earlier post you state that it does not work locally either - is this still the case?

The error message appears to indicate that that hosting site is not serving .svgz files correctly i.e. they are not marked as being gzipped and so Firefox does not try to uncompress them and is confused by the content. (see also sonnabend's earlier post re Apache config.). Please try generating a report to familytrees.genopro.com. If that works then there is definitely an issue with your hosting site.

By panther - Saturday, August 18, 2007
No, it doesn't work locally either. If it works OK with Internet Explorer, than wouldn't that mean the host supports it?

I'll see about making a short report.

Thank you
By panther - Sunday, August 19, 2007
Well, I did generate a report to familytrees.genopro.com and it works, even though it is really slow. So I did another to my hard drive exactly the same way and it didn't work. I then uploaded to my web site and that didn't work either.

I give up, but thanks for trying.
By genome - Tuesday, August 21, 2007
As it is OK on familytrees, I think it is safe to say your hosting site is not configured correctly for compressed SVG files.

However on local disc is should work. There is an explict check in the generated genomapx.htm files e.g.

var agt=navigator.userAgent.toLowerCase();
is_ie=(agt.indexOf("msie")!=-1);
var strFileSvg='genomap0.svg';
if (is_ie || document.location.href.indexOf('file://')==-1) strFileSvg = '../genomapsz/' + strFileSvg + 'z';

Basically if the browser is IE or the protocol is not file: (e.g. it is http: ) then a compressed svg is used, otherwise the uncompressed file is used. So Firefox should open the uncompressed file locally. I don't know why this is not working in your case. You should be able to open the .svg files in the genomaps folder of the report directly with Firefox, although they may not be visible as the GenoPro orgin is placed in the top left corner and only elements to the right and below the GenoPro origin point will be seen. It would be helpful to know what error is displayed, if any, in this case.

The SVG engine in Firefox is very slow compared to the Adobe client. There have been many posts on this. The recommendation is to use smaller genomaps to limit the effect of this shortcoming. 

By panther - Sunday, August 26, 2007
I've been messing around with different settings and somehow I got it to work in Firefox. The only problem is that the plus button, minus button and the other buttons by them, don't work. Then after clicking the green arrows to move around in the tree and you try to do something else, Firefox crashes. Like I said, "thanks for trying", but it's just not worth the hassle. Maybe somebody will fix Firefox.

I'll just have to add a message - best viewed using IE. (shudder)

Thanks and GenoPro still rules,
Panther
By Desiredbard - Sunday, May 4, 2008
I received the following responce from my provider after implementing the mime types

Hello Bas,

It seems that it is the browser issue with Firefox. We tested your pages after adding the required MIME type and still seeing the problem.
Are you able to contact the script provider and address the problem? If you need any other server adjustment, please let us know and we will test it out for you.

Thank you.


Regards,

Vincent
Doteasy Customer Service
"Join the hosting revolution!"
By dougie - Wednesday, May 21, 2008
I have just downloaded Firefox 2.0.0.14 (latest version as of May 21 2008) and when I load up a page from familytrees, the SVG shows only the lines of the genomap. That is no circles, no square boxes, no data, however, links to other genomaps are there.
Any ideas???????????

Thanks
By appleshaw - Wednesday, May 21, 2008
I do not have that problem with 2.0.0.14.
I have just had to re-install everything, so have a clean system - not even got the Adobe svg plug-in for IExplorer yet.
Try re-installing Firefox?
By rprice - Wednesday, February 11, 2009
Concerning SVGviewer with FireFox. I am running Firefox 3.0.6
and I installed the SVG viewer from Adobe. It did not work and kept
prompting me to install the viewer. What I did was to copy the file
NPSVG3.dll from Program Files/common files/adobe to the plugins directory of FireFox.
Works like a charm.