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

GenoPro Support Forum




Problem when displaying the report as one frame among another frames

Click to view RSS...
Author
Posted Tuesday, December 5, 2006 - Post #14994
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
poolzone (12/5/2006)
Perhaps you would be so kind as to post your example so we can see the result?

I'll be glad to.

Here is a simple and small example:

http://familytrees.genopro.com/beraha/test-root/default.htm

Maybe it's not an elegant solution, But it works !!!

You have to change the "Script.js" as I said before, on your reports skin

changed "top." with "parent." in the "script.js" file using  "CTRL-H" and make all the replacements

Also - you have to create a new skin like  "Root-skin" and change the file "default.htm" by deleting most of it, and adding just a few lines

<%[@ IncludeFile "Code/Util.vbs" ]%>
<%[

InitGlobalVariables

Set doc = ReportGenerator.document
Set oStringDictionaryNames = Session("oStringDictionaryNames")
strTitle = Session("Title")
]%><!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Language" content="en"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>@[ Report.WriteText strTitle ]@</title>
<meta name="description" content="@[WriteMetaDescriptionReport]@" />
<meta name="keywords" content="@[WriteMetaKeywordsReport]@" />
<script src="script.js" type="text/javascript"></script>
<script type="text/javascript">
// define & initialize some global vars
var saveRhs;
var saveLower;
var svgMaxButton = new Image(16, 16);
var svgResButton = new Image(16, 16);
svgMaxButton.src = "images/maximize.gif";
svgResButton.src = "images/restore.gif";
var svgToggleState = svgMaxButton.src;
</script>
</head>

<frameset rows="16%,84%">

  <frame src="top.htm">
  <frame src="under.htm"  name="report">

</frameset>

</html>

add a new file to your root-skin folder- "Top.htm"

<html>
<head>
<body>

<b> Please choose a family report: </b>
<br>
<a href ="http://familytrees.genopro.com/XXXXXXX/test1" target ="report">Report No 1</a><br>

<a href ="http://familytrees.genopro.com/XXXXXXX/test2" target ="report">Report No 2</a><br>

</body>
</head>
</html>

Add another new file to your "Root-skin" Folder - "under.htm"

<html>
<body>
<br><br><br>
<p><h2> Choose your chosen report from the top frame </h2><p>

</body></head>
</html>

 

And publish a Blank GNO file using that new Root skin.

Remember that your reports (i.e - Test1 & Test2), and also your "Root report" should use a skin with the updated script.js

Then you have to type in your Internet-Explorer the link to your "Root Report"

That's it. Smile

 

Edited: Tuesday, December 5, 2006 by beraha

Posted Monday, December 4, 2006 - Post #14992
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
GenoPro version: 2.5.4.0

Last Login: Thursday, January 11, 2024
Posts: 386, Visits: 4,475
Perhaps you would be so kind as to post your example so we can see the result?

Poolzone  a mere cog in a revolution
Posted Monday, December 4, 2006 - Post #14983
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
Ron (12/3/2006)
If you do arrive at a solution please let us know here!

I think I've found something.

I've changed "top." with "parent." in the "script.js" file using  "CTRL-H" and made all the replacements, and it seems to open now the "popups windows" Smile

I hope I did nothing wrong.Wink

Edited: Monday, December 4, 2006 by beraha

Posted Sunday, December 3, 2006 - Post #14954
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
GenoPro version: 2.5.4.0

Last Login: Thursday, January 11, 2024
Posts: 386, Visits: 4,475
"External Parent frames" or of the "External top Frame".

I have resolved this issue in the main.  Please see the following example at http://familytrees.genopro.com/poolzone/test6/new1.html

I am unable in the next couple of days to further this concept, but as you will see on my example above, the Genopro report is working properly within the frame of the page New1.html.  It needs only for you to install this within your own web page in a similar manner and work the report selection. I have not tested it from a remote FTP site, however I do not envisage that this will be an issue.

It appears there is no issue with Genopro's English Narrative Report, merely the way we introduce it into the frame.

Poolzone  a mere cog in a revolution

Posted Sunday, December 3, 2006 - Post #14951
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
poolzone (12/4/2006)
  I know you want to achieve this within your frame, however in the interim, it is very easy to direct users to different language versions of your report, or different families in the way that the following example moves between Test2 and Test4. 

Thank you for your suggestion.

It seems that we have no other choice but to wait until after the release of Ver2, Sad and only then, maybe Ron will find a solution for the cases of an "External Parent frames".Smile

In my point of view, the main advantage of this method, is that I can configure my "parent frames" as I like on my own website, and still make links to all the reports which are located on Genopro server. It's much more faster to update a report from genopro itself, rather than use a standard FTP.

Even when genopro will have an FTP access, so we'll be able to upload our entire website to Gonopro's servers, We'll still need a solution for this issue of the "External Parent frames" or of the "External top Frame".

I wonder When Genopro will start to work on Beta3 :Tongue::. Maybe then they could implement this feature.

 

Edited: Sunday, December 3, 2006 by beraha

Posted Sunday, December 3, 2006 - Post #14950
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
GenoPro version: 2.5.4.0

Last Login: Thursday, January 11, 2024
Posts: 386, Visits: 4,475
Hi Beraha,

I know you want to achieve this within your frame, however in the interim, it is very easy to direct users to different language versions of your report, or different families in the way that the following example moves between Test2 and Test4.   Just click on Link to Test? on either report.

http://familytrees.genopro.com/poolzone/test4/default.htm 

You could also include an icon on each tree to redirect readers back to your main Web site.

Poolzone  a mere cog in a revolution

Posted Sunday, December 3, 2006 - Post #14945
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
At the moment, the priority is to release GenoPro 2.0.   We need a stable product, so we only make bug fixes.  After releasing GenoPro 2.0, we will continue improving the report generator and offer new features.
Posted Sunday, December 3, 2006 - Post #14944
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
Hi bereha,

I afraid the problem may be too deeply rooted to be easily fixed. My initial findings are:

Firstly your top frame is on a different web site to your GenoPro report, hence permission errors are generated when the GenoPro Report tries to change the title of the browser window. You can avoid this by publishing your GenoPro Report to the same web site as your top frame.

Secondly the report's javascript uses its top frame (default.htm) to store some variables that are used in other frames and the script refers to them as 'top.<variable>'. You will either need to declare these variables in a script in your top frame or change the GenoPro Report's script to take account of the changed hierarchy.

I have not reviewed all the javascript used in the reports. There may well be other places where the script references the 'top' frame via javascript's built-in 'top' object. You will need to examine the javascript closely for references to 'top' and change as appropriate.

There is also the issue identified by poolzone, i.e. clicking 'home' resets the windows URL to the the report's 'default.htm' page.

I agree a solution to this issue will be useful to others who wish to publish their trees in this way. Unfortunately at present I can see no simple fix.

If you do arrive at a solution please let us know here!


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Sunday, December 3, 2006 - Post #14939
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
GenoPro version: 2.5.4.0

Last Login: Thursday, January 11, 2024
Posts: 386, Visits: 4,475
Hi Beraha, YES, I see the problem now.  I did not have time Yesterday to recreate, but have done so Today on http://familytrees.genopro.com/poolzone/test2/new1.html

The scripting does not work under the new 'parent' frame. If 'home' is selected the parent frame is escaped and all works well. 

This is something in the report writer that Ron may be able to correct.

Poolzone  a mere cog in a revolution

Posted Sunday, December 3, 2006 - Post #14925
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
Thanks for the tip.  Ron will take a look at it when he gets back on Monday.


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse