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

GenoPro Support Forum




Author When I load them onto my Internet Web server the svgs don't display correctly
Posted Sunday, November 13, 2011 - Post #29396
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Customers
GenoPro version: 2.0.1.4

Last Login: Tuesday, September 27, 2022
Posts: 64, Visits: 5,071
I'm hoping someone can solve this conundrum for me.   The website I have generated with Genopro (using custom skin template Narrative Report version 2011.11.07.) displays correctly using Opera and Firefox for the (svg) family tree diagrams when I display them locally i.e. as files on my P.C.

When I load them onto my Internet Web server the svgs don't display correctly - in Firefox the pane is sometimes blank and in Opera a message appears that the SVG viewer doesn't support scripting and I should upgrade - however the tree does display but cannot be panned, zoomed etc.

I have checked the Mime types for the Apache server and it gives:

image/svg+xml for filetypes svg and svgz

I have discovered that for Firefox, since earlier this year you can't disable the internal SVG viewer and use Adobe or Coral as FF is internally dependant on SVG.

I have put a copy of the website on a local Apache server (running on a geriatric PC on my local network) so that I can get at the files via http:// rather than file:// and everything is fine - Firefox displays the trees and Opera doesn't complain about scripting.

This didn't originally appear to be a Genopro problem but ........the odd thing is that with Opera if I load directly the /genograms/genogramx.htm file the problem occurs but if I load the /genograms/genogramx.svg it displays perfectly, which points to an issue with either the htm file or one of the scripts it uses, rather than Opera's SVG viewer.

Clearly there is some interaction with my ISPs Webserver config differing from my local one and somehow confusing Opera.   More in desperation than in the hope of fixing things I have even added a custom MIME type to my ISPs webserver - application/javascript for file type es to match with the js filetype.

Another small point is that there is an option when creating the report to compress the SVG file, however the files generated are SVG, not SVGZ and are uncompressed text.   I do have Inkscape on my PC and it generates the PDFs correctly.   Is this a "place-holder" option or should some more black magic happen behind the scenes.

 Bob C


  


Edited: Monday, November 14, 2011 by GenoProSupport
Posted Monday, November 14, 2011 - Post #29402
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, October 28, 2025
Posts: 4,886, Visits: 22,799
When I load them onto my Internet Web server the svgs don't display correctly
What is your web site?  I will try with different web browsers.
Posted Monday, November 14, 2011 - Post #29405
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Customers
GenoPro version: 2.0.1.4

Last Login: Tuesday, September 27, 2022
Posts: 64, Visits: 5,071
Sorry, I should have said - www.bccy.org.uk

Use the View Family Trees from the main menu or go directly to http://www.bccy.org.uk/famhists/index.html

BobC
Posted Tuesday, November 15, 2011 - Post #29419
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 2 days ago @ 9:23 PM
Posts: 3,464, Visits: 26,854
Opera seems to be a little slower than other browsers in rendering SVG format.  The report has a a built-in wait loop of up to a minute for the SVG to initialise before it is zoomed to the required level.

 I noticed that with Opera your larger genomaps load but fail to zoom correctly.  If I then right click on the frame header (e.g. next to tree title) and choose Reload then the SVG renders and zooms correctly.

If you have a slow Internet link this may be the problem so I will increase the maximum delay before the message appears to say 3 minutes.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Wednesday, November 16, 2011 - Post #29429
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Customers
GenoPro version: 2.0.1.4

Last Login: Tuesday, September 27, 2022
Posts: 64, Visits: 5,071
Yes, my Internet link is a slow (dial-up) one.    Just testing via a Public Wi-Fi seems better.   How do I change the time-out ?

Bob
Posted Wednesday, November 16, 2011 - Post #29438
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 2 days ago @ 9:23 PM
Posts: 3,464, Visits: 26,854
The timeout is set on line 1503 of scripts/script.js
          if (! counter || counter < 120) { // wait for 60 secs max

just change 120 to say 240 and try it, then if not working double to 480, 960 etc (units are 500 milliseconds).

If you find a value that works let me know.  Suggest you just push up a modified script.js to your web site using a FTP client (Filezilla is my favourite).  


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Thursday, November 17, 2011 - Post #29444
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Customers
GenoPro version: 2.0.1.4

Last Login: Tuesday, September 27, 2022
Posts: 64, Visits: 5,071
I've doubled the time-out limit and things seem better, though I also see that the effective throughput of my internet connection is better now as well (5% throughput on a 37K connexion was somewhat reminiscent of my early pre-internet days running at 300Bd on a mechanical TTY) .   Clearly the issue is speed related and I don't envy you trying to catch all the possible problems/exceptions with the various browsers.

I know there was some reason why I liked the old simple text based Genpro 1x reports :-)

Any comments on the "compressed genomap" I mentioned earlier ?  - it looks like some browsers will open an SVGZ file, others just choke on it; probably best left alone.

BobC
Posted Thursday, December 8, 2011 - Post #29523
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers
GenoPro version: 2.5.4.1

Last Login: Sunday, October 30, 2022
Posts: 45, Visits: 1,256
Ron (03-Dec-2010) from Post #27086
The genomapx.htm files were only intended to be used within the frameset environment of the report and were not specifically designed to be opened in stand-alone mode outside of the frameset. With this release they can be opened but the controls do not appear to work correctly. 


The thread that this post is from is closed.  This thread seems somewhat of a match to my issue.  I'm using v. 2011.11.08 and I'm really impressed with how the genomaps are working.  I link to "stand-alone" genomapx.htms from my website, however I've noticed an inconsistent issue.  When I click on the hyperlinks sometimes the genomap svgs don't land on the next hyperlink, but instead end up elsewhere in the genomap.  Then if I go back in the browser and try the hyperlink again it lands correctly on the next hyperlink.

You can test this here.  It takes a couple tries to get it to do this, but it seems like it happens the initial time.  You can also test here by clicking the the link on the page "View this person in the family tree."

I've modified genomap.svg lines:

783 - If i.Href <> "" Then Report.WriteFormattedLn "<a xlink:href='../individualdetails.asp?id={}' onclick='restorePopUp();' target='detail'>", i.Href

and

871 - If isource.Href <> "" Then Report.WriteFormattedLn "<a xlink:href='../individualdetails.asp?id={&x}' onclick='restorePopUp();' target='detail'>", isource.Href

and Config.xml line:

110 -  <Report
                        For="Individuals"
                        LoopItemName="i"
                        OutputFile="{id}"
                        Template="individualdetails.asp" />

I appreciate any help in trying to figure this out and can provide more info if needed.


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse