HTML report forces Adobe SVG Viewer for Firefox 3
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
GenoPro Support Forum
Home        Members    Who's On
Welcome Guest ( Login | Register )
        



HTML report forces Adobe SVG Viewer for Firefox 3 Expand / Collapse
Author
Message
Post #22232 Posted 7/27/2008 9:05:10 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Customers
Last Login: 7/28/2008 11:47:20 AM
GenoPro Version: 2.0.1.1
Posts: 5, Visits: 24
Hi,

I maintain my genealogy on a separate website.

I upgraded to Firefox 3, and I noticed that now my website forces me to download the Adobe SVG viewer to view genograms. If I force Firefox to pretend to be version 2.0 (using general.useragent.extra.firefox in about:config), then the genogram is displayed using Firefox's native SVG viewer.

It looks like the browser check is in svgcheck.js . The line responsible for this behavior is the following.

is_mozff1_5=(agt.indexOf("firefox/1.5")!=-1||agt.indexOf("firefox/2.")!=-1);


I have tinkered with the default skin's HTML and PGP for my website in the past, but with this JavaScript problem I need help. How do I change the above code so that Firefox 3 can view the genogram with its native renderer? Preferably in such a way that this problem doesn't resurface when a new Firefox version comes out.
Post #22234 Posted 7/28/2008 7:13:30 AM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 6:30:53 PM
GenoPro Version: 2.0.1.6
Posts: 1,151, Visits: 5,401
Thanks for the report. I was unaware of FF3 so hadn't tested it. I will assume that everyone using Firefox has at least 1.5 and change the test just to check for firefox. This should prevent a reoccurrence of this problem.

I will shortly post a substantial update to the narrative report and will include this update in it.

Update The post  Narrative Report with PDF format genograms  http://support.genopro.com/FindPost21852.aspx has the fix.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #22241 Posted 7/28/2008 12:00:41 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Customers
Last Login: 7/28/2008 11:47:20 AM
GenoPro Version: 2.0.1.1
Posts: 5, Visits: 24
thanks!

I changed

is_mozff1_5=(agt.indexOf("firefox/1.5")!=-1||agt.indexOf("firefox/2.")!=-1);


to

is_mozff1_5=(agt.indexOf("firefox/")!=-1);


per your reference above, and everything works (after refreshing the page)


Thank you very much, Ron!
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: GenoProSupport, JcMorin, Ron

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 7:22 PM

Copyright 1998-2008 GenoPro. All rights reserved. GenoPro and the GenoPro logo are trademarks.