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

GenoPro Support Forum




Iframe issue (default report skin)

Click to view RSS...
Author Lower-right FrameBorder doesn't move on its own, when genomap or google maps are loaded.
Posted Saturday, February 17, 2007 - Post #16412
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
GenoPro version: 2.0.0.3

Last Login: Friday, January 18, 2008
Posts: 24, Visits: 163
I'm trying to display my report (uncustomized* default skin) within an iframe on a php page, and I have three issues:

1. For some reason the lower right-hand frame does not automatically resize its FrameBorder and needs to be dragged upwards by hand, when a link is clicked to show a GenoMap or Google Map. This behavior only occurs within the iframe and doesn't happen when I load up the report normally on the same site.

2. The "Overview Map of all geocoded places" link successfully triggers the lower right Google Map frame, but the map is empty and grey. The Google Map "enlarge" button displays, but has no effect, but the "close" button works. Again, loading this same content normally works just fine and this only happens within the iframe.

3. The "click to enlarge/reduce the size of this popup frame" button is visible in Google Maps, but does not have any effect when the content is loaded up within the iframe. This button does now show up at all for GenoMaps, although the corresponding alt text displays in that spot instead.

The PHP code, for reference (for some reason the code-stripping isn't working here, so I'm improvising in this post):
start php
require_once('config.php');
print_header('GenoPro Iframe Test');
close php

display standard iframe code

start php
print_footer();
close php


The php page containing the iframe code lives in a folder that is parallel to the genopro folder on my site. Wondering if this was javascript, I copied some of the supporting script files into both directories just in case, to no avail. I have a feeling this still may have to do with the javascript, but I'm not much of a javascript wizard or even much of a hack at this point. Can anyone point me to where the issue may lie?

* I say uncustomized, but I did edit the link for the Home icon in heading.htm, in order to avoid the default behavior of escaping the iframe when someone clicks Home.

Edit: Here's what IE reports:

Line: 690
Char: 2
Error: 'top.popupMaxButton.src' is null or not an object
Code: 0
URL: http://www.examplesite.com/gnotest/gmap_places.htm


Edited: Sunday, February 18, 2007 by Sonnabend
Posted Wednesday, February 21, 2007 - Post #16467
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
GenoPro version: 2.0.0.3

Last Login: Friday, January 18, 2008
Posts: 24, Visits: 163
49 thread views and rising!

This is pretty much my only show-stopper, so any thoughts whatsoever would be very much appreciated! I may even throw in some how-to forum posts for how I set the site up.
Posted Wednesday, February 21, 2007 - Post #16468
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.0

Last Login: 1 hour ago
Posts: 2,607, Visits: 18,899
Sonnabend (2/21/2007)
49 thread views and rising!

This is pretty much my only show-stopper, so any thoughts whatsoever would be very much appreciated! I may even throw in some how-to forum posts for how I set the site up.

Paret of the problem is that  javascript global variables are declared in default.htm, i.e. what is normally the top window, and then referenced via the javascript 'top' object. By placing the report in an iframe you have moved the 'top' and so the variables are not found.

I tried replacing all occurences of top. with top.frames["heading"].parent. in the files script.js and script.es. This then references the variables via the parent window of the frame with the name 'heading', but still no luck!


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Thursday, February 22, 2007 by Ron
Posted Thursday, February 22, 2007 - Post #16483
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.0

Last Login: 1 hour ago
Posts: 2,607, Visits: 18,899
I think I know why my 1st attempted fix failed. But I now I have a working solution to this issue! Hopefully it will be available in GenoPro 2.0.0.3


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Saturday, February 24, 2007 - Post #16520
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
GenoPro version: 2.0.0.3

Last Login: Friday, January 18, 2008
Posts: 24, Visits: 163
Ron (2/22/2007)
I thinkI know why my 1st attempted fixfailed. But I now I have a working solution to this issue! Hopefully it will be available in GenoPro 2.0.0.3

Great! Let me know if I can help betatest it prior to the 2.0.0.3 release (not sure when that will be).


Edited: Saturday, February 24, 2007 by Sonnabend
Posted Sunday, March 04, 2007 - Post #16618
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
GenoPro version: 2.0.0.3

Last Login: Friday, January 18, 2008
Posts: 24, Visits: 163
2.0.0.3 has taken care of this issue. Thanks for the help, Ron!
Posted Sunday, May 20, 2012 - Post #30158
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Customers
GenoPro version: 2.5.4.1

Last Login: Monday, May 08, 2017
Posts: 1, Visits: 4
How has 2.0.0.3 taken care of the embed issue? I still can't figure out how to embed reports in Drupal. Thanks for any help. 

Tags:
Posted Wednesday, June 13, 2018 - Post #38755
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
FamilyTrees.GenoPro.com
Important Contributors
Translator
GenoPro version: 3.0.1.1

Last Login: 5 hours ago
Posts: 178, Visits: 2,501
If someone is still interested,
trying to display my report inside an iframe, I had the same problem in the genomaps view.

I solved the problem with this change in scrips.js, line 1619:

 
old line 1619        target = target || parent;
new line 1619      target = parent;

With target = parent;  , everything works even inside an iframe!

Vittorino Lepore 
"
Se non porti almeno una soluzione, anche tu fai parte del problema" or "If you don't bring at least a solution, even you're a part of the problem"


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse