|
|
Customers Gamma GenoPro version: 3.1.0.1
Last Login: Thursday, November 16, 2023
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
|
|
|
Customers Gamma GenoPro version: 3.1.0.1
Last Login: Thursday, November 16, 2023
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.
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: Yesterday @ 9:20 AM
Posts: 3,396,
Visits: 26,180
|
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
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: Yesterday @ 9:20 AM
Posts: 3,396,
Visits: 26,180
|
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"
|
|
|
Customers Gamma GenoPro version: 3.1.0.1
Last Login: Thursday, November 16, 2023
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
|
|
|
Customers Gamma GenoPro version: 3.1.0.1
Last Login: Thursday, November 16, 2023
Posts: 24,
Visits: 163
|
2.0.0.3 has taken care of this issue. Thanks for the help, Ron!
|
|
|
Customers GenoPro version: 2.5.4.1
Last Login: Monday, May 8, 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:
|
|
|
Customers FamilyTrees.GenoPro.com Important Contributors Translator GenoPro version: 3.1.0.1
Last Login: Thursday, December 19, 2024
Posts: 214,
Visits: 3,616
|
If someone is still interested,
trying to display my report inside an iframe, I had the same problem in the genomaps view.
A solution is proposed in scrips.js, line 702-736 with the replacement of parent.parent with mytop (for Chrome, FireFox and Edge):
function hidePopUpFrame(e, newpage) { $.postMessage('hidePopup'+(newpage ? '='+newpage : ''), window.location.protocol == 'file:' ? '*' : window.location.href, mytop); } function hideGenoMapFrame(e) { if (!e && window.event) e=window.event; if (!e) return false; var button; if (e.target) button=e.target; if (e.srcElement) button=e.srcElement; button = button.previousSibling if (button) button = button.previousSibling; if (button && button.src.indexOf(" images/restore.gif") != -1) { $.postMessage('hideMap',window.location.protocol == 'file:' ? '*' : window.location.href, mytop); button.src = "../images/maximize.gif"; } else { $.postMessage('hidePopup=popup.htm', window.location.protocol == 'file:' ? '*' : window.location.href, mytop); } } function tocHide() { $.postMessage('hideTOC', window.location.protocol == 'file:' ? '*' : window.location.href, mytop); }function tocShow(toc) { $.postMessage('showTOC='+toc, window.location.protocol == 'file:' ? '*' : window.location.href, mytop); }function tocExit(popup) { if (tocStateToggle == 'Close') { $.postMessage('hideTOC'+(popup ? '='+popup : ''), window.location.protocol == 'file:' ? '*' : window.location.href, mytop); } else { if (popup) $.postMessage('openPopup='+popup, window.location.protocol == 'file:' ? '*' : window.location.href, mytop); } return true; }
________________________________________________
This solution can be made for everyone, even without Iframe, and works well with Edge, Chrome and FireFox
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"
Edited: Thursday, October 18, 2018 by
vlepore
|