pld51
asked on
Greybox popup working properly in an iframe
We are using greybox as pop-up windows for when somebody clicks for more details. It works fine with the pop-up appearing beside the link. Except if the page is put in an iframe. If in an iframe, the pop-up appears, but at the very top of the page and this can mean excessive scrolling upwards to see the pop-up. Any solutions that do NOT involve putting the pop-up window coding in the page that has the iframe code?
Can you post your source example?
ASKER
In the header we have:-
<script type="text/javascript">
var GB_ROOT_DIR = "http://www.roveaway.com/greybox/";
</script>
<script type="text/javascript" src="../greybox/AJS.js"></ script>
<script type="text/javascript" src="../greybox/AJS_fx2.js "></script >
<script type="text/javascript" src="../greybox/gb_scripts 2.js"></sc ript>
<link href="../greybox/gb_styles 2.css" rel="stylesheet" type="text/css" />
For each link where we call the greybox, eg "details":-
<a href="tour-detail.asp" rel="gb_page[650, 680]">details</a>
Using the FAQ of Greybox for iframes, we also tried this without luck:-
<a href="tour-detail.asp?ssid =<%=servid %>" onclick="return parent.GB_show('details', this.href)">details</a>
<script type="text/javascript">
var GB_ROOT_DIR = "http://www.roveaway.com/greybox/";
</script>
<script type="text/javascript" src="../greybox/AJS.js"></
<script type="text/javascript" src="../greybox/AJS_fx2.js
<script type="text/javascript" src="../greybox/gb_scripts
<link href="../greybox/gb_styles
For each link where we call the greybox, eg "details":-
<a href="tour-detail.asp" rel="gb_page[650, 680]">details</a>
Using the FAQ of Greybox for iframes, we also tried this without luck:-
<a href="tour-detail.asp?ssid
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
No other solution was presented