|
|
|
Junior Member
      
Group: Customers
Last Login: 9/3/2009 12:20:00 PM
GenoPro Version: 2.0.1.6
Posts: 17,
Visits: 51
|
|
| 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.
|
|
|
|
|
Legendary Master
       
Group: Administrators
Last Login: Yesterday @ 11:13:07 PM
GenoPro Version: 2.5.0.2
Posts: 3,638,
Visits: 15,173
|
|
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.
|
|
|
|
|
Grand Master
      
Group: Customers
Last Login: Today @ 8:46:16 AM
GenoPro Version: 2.0.1.6
Posts: 1,347,
Visits: 6,680
|
|
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.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
|
|
Junior Member
      
Group: Customers
Last Login: 9/3/2009 12:20:00 PM
GenoPro Version: 2.0.1.6
Posts: 17,
Visits: 51
|
|
| 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?
|
|
|
|
|
Grand Master
      
Group: Customers
Last Login: Today @ 8:46:16 AM
GenoPro Version: 2.0.1.6
Posts: 1,347,
Visits: 6,680
|
|
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='{}';", strFileSvgIf 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?
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
|
|
Forum Newbie
      
Group: Customers
Last Login: 3/25/2006 7:08:46 AM
GenoPro Version: 1.99b
Posts: 2,
Visits: 15
|
|
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
|
|
|
|
|
Grand Master
      
Group: Customers
Last Login: Today @ 8:46:16 AM
GenoPro Version: 2.0.1.6
Posts: 1,347,
Visits: 6,680
|
|
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.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
|
|
Forum Newbie
      
Group: Customers
Last Login: 3/25/2006 7:08:46 AM
GenoPro Version: 1.99b
Posts: 2,
Visits: 15
|
|
| Yes that helps me, Thanks
|
|
|
|
|
Junior Member
      
Group: Customers
Last Login: 9/3/2009 12:20:00 PM
GenoPro Version: 2.0.1.6
Posts: 17,
Visits: 51
|
|
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
|
|
|
|
|
Grand Master
      
Group: Customers
Last Login: Today @ 8:46:16 AM
GenoPro Version: 2.0.1.6
Posts: 1,347,
Visits: 6,680
|
|
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.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
|
|
Legendary Master
       
Group: Administrators
Last Login: Yesterday @ 11:13:07 PM
GenoPro Version: 2.5.0.2
Posts: 3,638,
Visits: 15,173
|
|
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.
|
|
|
|
|
Junior Member
      
Group: Customers
Last Login: 9/3/2009 12:20:00 PM
GenoPro Version: 2.0.1.6
Posts: 17,
Visits: 51
|
|
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 |
|
|
|
|
|
Legendary Master
       
Group: Administrators
Last Login: Yesterday @ 11:13:07 PM
GenoPro Version: 2.5.0.2
Posts: 3,638,
Visits: 15,173
|
|
|
|
|
|
Junior Member
      
Group: Customers
Last Login: 9/3/2009 12:20:00 PM
GenoPro Version: 2.0.1.6
Posts: 17,
Visits: 51
|
|
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 |
|
|
|
|
|
Junior Member
      
Group: Customers
Last Login: 9/3/2009 12:20:00 PM
GenoPro Version: 2.0.1.6
Posts: 17,
Visits: 51
|
|
| 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
|
|
|
|
|
Legendary Master
       
Group: Administrators
Last Login: Yesterday @ 11:13:07 PM
GenoPro Version: 2.5.0.2
Posts: 3,638,
Visits: 15,173
|
|
MarkS (2/19/2006) I hope I havn't disturbed your Sunday too much!!. All your help i much appreciatedIf I wish to take the Sunday off, I stay away from my computer . 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.
|
|
|
|
|
Grand Master
      
Group: Customers
Last Login: Today @ 8:46:16 AM
GenoPro Version: 2.0.1.6
Posts: 1,347,
Visits: 6,680
|
|
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.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
|
|
Forum Master
      
Group: Customers
Last Login: Today @ 5:50:33 AM
GenoPro Version: 2.0.1.6
Posts: 758,
Visits: 6,290
|
|
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.
|
|
|
|
|
Junior Member
      
Group: Customers
Last Login: 9/3/2009 12:20:00 PM
GenoPro Version: 2.0.1.6
Posts: 17,
Visits: 51
|
|
| 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:- - 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.
- 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.
- 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
|
|
|
|
|
Forum Master
      
Group: Customers
Last Login: Today @ 6:10:29 AM
GenoPro Version: 2.0.1.6
Posts: 980,
Visits: 9,340
|
|
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)
|
|
|
|