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

GenoPro Support Forum




Putting a report inside an extranal frame

Click to view RSS...
Author
Posted Sunday, July 24, 2011 - Post #28745
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

FamilyTrees.GenoPro.com
Customers
GenoPro version: 3.1.0.1

Last Login: Thursday, June 2, 2022
Posts: 108, Visits: 1,280
You can copy the attached files into your custom theme's image directory, this will give you the right coloured corners for your index frame.

These files can be generated by using the Basic RoundedCornr feature here (set corner radius in pixels to 15) :
http://www.roundedcornr.com/


curvycorner_bl.png (80 views, 154 bytes)
curvycorner_br.png (86 views, 143 bytes)
curvycorner_tl.png (84 views, 153 bytes)
curvycorner_tr.png (76 views, 169 bytes)


Edited: Sunday, July 24, 2011 by HarryCaper
Posted Sunday, July 24, 2011 - Post #28743
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

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
Posted Sunday, July 24, 2011 - Post #28741
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: 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> " & 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> " & 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
heading
lower
toc
rhs
detail
popup

so parent of detail and popup is rhs and toc is a sibling of rhs.  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 


'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
Posted Sunday, July 24, 2011 - Post #28740
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

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
Posted Sunday, July 24, 2011 - Post #28738
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

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.
Posted Sunday, July 24, 2011 - Post #28737
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

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.

<a href='toc_individuals.htm#Baruch_ברוך' onclick='explorerTreeOpenTo(parent.parent.toc, "names","Baruch_ברוך", 0, 1, "2");tocShow();' target='toc'>Baruch_ברוך</a>

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> " & 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> " & 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 :-)

Posted Sunday, July 24, 2011 - Post #28735
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

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


Similar Topics

Click to view RSS...
Expand / Collapse
No results found!

Reading This Topic

Expand / Collapse
Active: 3 - 1 guest, 1 member, 0 anonymous.
Refresh