|
|
FamilyTrees.GenoPro.com Customers GenoPro version: 3.1.0.1
Last Login: Thursday, June 2, 2022
Posts: 108,
Visits: 1,280
|
|
|
|
Customers Important Contributors GenoPro version: 3.0.0.7
Last Login: Sunday, November 26, 2023
Posts: 213,
Visits: 4,464
|
Dear Ron
It seems that your solution works both for the "Most Popular Family Names" links and for the "Alphabetical Surname Index" View complete A-Z surname index) , links.
I've edited the example: (removed)
Edited: Tuesday, July 26, 2011 by
beraha
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: Yesterday @ 10:27 PM
Posts: 3,428,
Visits: 26,567
|
In the past the skin has been amended to allow it to operate within an external frame but it looks like these links have been overlooked. The javascript variable 'mytop' is created to point to the 'top' frame of the report rather than the 'top' frame of the whole page. The 'toc' frame can be referenced as mytop.frames["top"]
so please try changing line 79 of home . htm to If Session("fUseTreeIndexes") Then strFmtTemplate = "<a href='toc_individuals.htm#{0&t}' onclick='javascript:explorerTreeOpenTo(mytop.frames[""toc""], ""names"",""{0&j}"", 0, 1, ""2"");tocShow();' target='toc'>{0&t}</a>&nbsp;" & StrDicExt("FmtCounter", "", "<small><bdo dir'ltr'> ({})</bdo></small>", "", "2011.02.16")
|
and line 47 of toc_names.htm to If Session("fUseTreeIndexes") Then strFmtTemplate = "{}<a href='toc_individuals.htm#{1&t}' onclick='javascript:explorerTreeOpenTo(mytop.frames[""toc""], ""names"",""{1&j}"", 0, 1, ""2"");tocShow();' target='toc'>{1&t}</a>&nbsp;" & StrDicExt("FmtCounter", "", "<small><bdo dir'ltr'> ({})</bdo></small>", "", "2011.02.16")
|
Note that tocShow() was missing from toc_names.htm and so if index was hidden it would not be displayed.
I have tested this with a standard report. If you confirm it works for an embedded report I will add this change to the default skin thus avoiding any customisation requirement.
Update: our posts seemed to have crossed. I'm still trying to work out why parent.toc works!
The frame structure is:
outer
so parent of detail and popup is rhs and toc is a sibling of rhs . & nbsp ; I thought that is why parent . parent . toc worked for the standard non - embedded report , as parent . parent from detail or popup refers to lower frameset of which toc is a child & nbsp ;
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Edited: Sunday, July 24, 2011 by
genome
|
|
|
Customers Important Contributors GenoPro version: 3.0.0.7
Last Login: Sunday, November 26, 2023
Posts: 213,
Visits: 4,464
|
Thank you very much
after making the change youv'e suggested, it seeens that the links on the "Most Popular Family Names" section are working :-). You can see it on the above test treport. Thank you!!
However, the links on the "Alphabetical Surname Index" section (View complete A-Z surname index) , are still not working :-(
I guess there is another line on the code that should be changed, to fix that too.
Edited: Sunday, July 24, 2011 by
beraha
|
|
|
FamilyTrees.GenoPro.com Customers GenoPro version: 3.1.0.1
Last Login: Thursday, June 2, 2022
Posts: 108,
Visits: 1,280
|
Let me know, btw, if you want any help putting together a custom theme for your narrative report so blends in better with your parent frame.
|
|
|
FamilyTrees.GenoPro.com Customers GenoPro version: 3.1.0.1
Last Login: Thursday, June 2, 2022
Posts: 108,
Visits: 1,280
|
It looks to be a result of how the hyperlinks are coded for this section.
& lt ; a href='toc_individuals.htm#Baruch_ברוך' onclick= 'explorerTreeOpenTo(parent.parent.toc, "names","Baruch_ברוך", 0, 1, "2");tocShow();' target= 'toc'& gt ; Baruch_ברוך & lt ;/ a& gt ; Customise the home.htm in your custom skin directory and try regenerating the report - this is the line you want to replace:
If Session("fUseTreeIndexes") Then strFmtTemplate = "<a href='toc_individuals.htm#{0&t}' onclick='explorerTreeOpenTo(parent.parent.toc, ""names"",""{0&j}"", 0, 1, ""2"");tocShow();' target='toc'>{0&t}</a>&nbsp;" & StrDicExt("FmtCounter", "", "<small><bdo dir'ltr'> ({})</bdo></small>", "", "2011.02.16")
And this is what to replace it with:
If Session("fUseTreeIndexes") Then strFmtTemplate = "<a href='toc_individuals.htm#{0&t}' onclick='explorerTreeOpenTo(parent.toc, ""names"",""{0&j}"", 0, 1, ""2"");tocShow();' target='toc'>{0&t}</a>&nbsp;" & StrDicExt("FmtCounter", "", "<small><bdo dir'ltr'> ({})</bdo></small>", "", "2011.02.16")
I haven't tested this, but looking at how the frameset is constructed in default.htm, it looks like the detail and popup frames are both children of the names toc frame, so it should work... fingers crossed :-)
|
|
|
Customers Important Contributors GenoPro version: 3.0.0.7
Last Login: Sunday, November 26, 2023
Posts: 213,
Visits: 4,464
|
I've tried to insert the entire report inside an external frame.
Here is an example: (removed)
The problem I get, is that the links under the "Alphabetical Surname Index" section and under the "Most Popular Family Names" section, are not working. There is no efect on the "name index" list when I choose a name.
of course, If I go directly to the report (without the external frame), there is no problem with that.
Here is an example: (removed) I guess the problem is related to the coufuguration of the "external" frame, but I need some help to solve it.
Any idea how to solve this problem would be welcome.
Edited: Tuesday, July 26, 2011 by
beraha
|