Easy to fix :)

1, make sure that the greybox library is included in your top most
page.
2, from inside the iframe page (which does not need the greybox
library at all), don't use rel in your links.  Instead override
onclick (see advanced usage in the documentation) like this: <a
href="http://www.google.com";  onclick="return GB_showCenter("Google",
this.href, 640, 480)">Google</a>

That should work :)

--
Tyler Style
http://malthusian-solutions.com
http://nirdvana.com

dada wrote:
> Hi all,
>
> In mypage.html I have:
> <a href="http://www.google.com";  title="Google" rel="gb_page_center
> [640, 480]">Google</a>
>
> mypage.html has to be inside of an iframe. So when I click on the link
> above I get the window displaying Google's page inside of the iframe
> and I need it OUTSIDE of the iframe.
>
> I'm afraid <a href="http://www.google.com";  target="parent"
> title="Google" rel="gb_page_center[640, 480]">Google</a> does not
> work.
>
> I have also tried using a function like this:
> <script language="javascript">
>
>   function loadinparent(url){
>
>       parent.parent.location= url;
>
>       }
>
> </script>
> and then:
>        <a href="javascript:parent.parent.location.href ='http://
> www.google.com';" title="Google" rel="gb_page_center[640,
> 480]">Google</a>
>
> But it does not work either :((
>
> Please help!!
> Thanks in advance!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GreyBox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/greybox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to