Link to home
Start Free TrialLog in
Avatar of pld51
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?
Avatar of Justin Mathews
Justin Mathews

Can you post your source example?
Avatar of pld51

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_scripts2.js"></script>
<link href="../greybox/gb_styles2.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>
ASKER CERTIFIED SOLUTION
Avatar of pld51
pld51

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pld51

ASKER

No other solution was presented