|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Sunday, October 13, 2024
Posts: 4,887,
Visits: 22,769
|
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.
|
|
|
Customers GenoPro version: 3.1.0.0
Last Login: Friday, May 1, 2020
Posts: 12,
Visits: 80
|
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 |
Edited: Sunday, February 19, 2006 by
GenoProSupport
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Sunday, October 13, 2024
Posts: 4,887,
Visits: 22,769
|
|
|
|
Customers GenoPro version: 3.1.0.0
Last Login: Friday, May 1, 2020
Posts: 12,
Visits: 80
|
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 |
Edited: Sunday, February 19, 2006 by
GenoProSupport
|
|
|
Customers GenoPro version: 3.1.0.0
Last Login: Friday, May 1, 2020
Posts: 12,
Visits: 80
|
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
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Sunday, October 13, 2024
Posts: 4,887,
Visits: 22,769
|
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.
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: Yesterday @ 8:19 AM
Posts: 3,395,
Visits: 26,153
|
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"
Edited: Monday, February 20, 2006 by
GenoProSupport
|
|
|
Customers Important Contributors FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Sunday, March 21, 2021
Posts: 716,
Visits: 12,927
|
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.
Edited: Monday, February 20, 2006 by
GenoProSupport
|
|
|
Customers GenoPro version: 3.1.0.0
Last Login: Friday, May 1, 2020
Posts: 12,
Visits: 80
|
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
Edited: Monday, February 20, 2006 by
GenoProSupport
|
|
|
Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: Yesterday @ 1:21 AM
Posts: 1,582,
Visits: 31,558
|
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)
Edited: Tuesday, February 21, 2006 by
GenoProSupport
|