External Hyperlink full path ignored
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 )
        



External Hyperlink full path ignored Expand / Collapse
Author
Message
Post #16868 Posted 3/18/2007 12:11:55 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Customers
Last Login: 4/1/2007 3:55:59 AM
GenoPro Version: 2.0.1.6
Posts: 17, Visits: 47
I have a problem with the external hyperlink functiom. I am trying to link an individual to an html page on an external website. On the person properties window Hyperlink Tab I enter the address of the link http://www.blahblahetc.com/index.htm in the External Hyperlink box and click the "Preserve Full Path" check box. I set the "Hyperlink Action" to "External Hyperlink" click on the test link to see if it works and then click OK to close the window. All this works

However when I run the Report Generator and click on the link in the SVG tree diagram the page is not found. This is because it has not preserved the full path and is looking for the external link relative to my server address. Further - when I go back into Genopro and open up the person properties hyperlink tab, although the link is preserved, the "Preserve Full Path" check box is cleared. This appears to clear itself every time I close the window.

Internal hyperlinks work fine
I have tried making changes to the Hyperlink Action type - but this makes no difference.
The problem is not specific to one individual, I can't get anyone to link to an external address

Genopro 2007 V2.0.0.2 running on XP prof.
Report generator uploading files to my own server running IIS on XP prof.

Help appreciated

Mark
Post #16871 Posted 3/18/2007 1:05:30 PM


Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master This user is an important contributor to the translation of GenoPro 

Group: Administrators
Last Login: Today @ 9:31:29 AM
GenoPro Version: 2.0.1.6
Posts: 3,517, Visits: 14,852
The report generator does change the hyperlinks indeed.  One solution I am considering is using the same technique as the SVG tree by supporting two hyperlinks: the first hyperlink is the underlined text (as usual) and the second hyperlink would link to the HTML page of the generated report.  This way, the report generator won't overwrite an explicit hyperlink.

Because GenoPro 2.0 (2007) was late by several years, this feature was postponed.

Post #16929 Posted 3/21/2007 12:55:46 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Customers
Last Login: 4/1/2007 3:55:59 AM
GenoPro Version: 2.0.1.6
Posts: 17, Visits: 47
Having explored this a bit more deeply it appears that the report generator is a bit inconsistent. In the narrative part it displays the correct external link and this works when it is clicked on. However in the SVG diagram where the individual in the tree displays a different colour text and indicates it's a live link this does not work because the report generator has not preserved the full path (it treats it as a relative address to the local server).
So the SVG area seems to be the problem - is it possible to stop the SVG diagram from indicating that there is an external link. (However I do want to keep the internal links to genograms as these work fine)
Post #16934 Posted 3/21/2007 2:17:08 PM


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 @ 10:20:31 AM
GenoPro Version: 2.0.1.6
Posts: 1,145, Visits: 5,355
There are a couple of issues here. Firstly I think I have incorrectly encoded the external hyperlinks. To correct this change line 419 of genomap.svg in a customised skin as follows
from
  strAction="cursor=""pointer"" " & Util.FormatString(" onclick=""displaylink('{&U}','_blank');""", i.Hyperlink.Target)
to
  strAction="cursor=""pointer"" " & Util.FormatString(" onclick=""displaylink('{&j}','_blank');""", i.Hyperlink.Target)

Also you need to click on the stroke of the text to get the external link, otherwise the individual details are shown in the detail pane instead. With Firefox the cursor will change from an arrow to a hand pointer. In IE it changes from an arrow to the text I-bar. I need to fix this by perhaps drawing a transparent box under the link text.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #17182 Posted 4/1/2007 3:59:36 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Customers
Last Login: 4/1/2007 3:55:59 AM
GenoPro Version: 2.0.1.6
Posts: 17, Visits: 47
I can confirm this now works. I'm glad you understand the script!! Thanks for your help
« 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 1:28 PM

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