You're using jQuery (?) which may screw things up.  Libraries often
don't play well together.

Your GB_ROOT_DIR needs to be an URL, not a path.

Your link inside the iframe is missing the "top." in front of the
greybox call.

You don't need the greybox includes in the iframe if you have them in
the main page and are using 'top' to call the greybox.

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

Araceli Domínguez wrote:
> Thanks a ton for answering!
>
> But I'm afraid it is not working.. let me explain it better:
>
> main page has attached main.js
> Inside of main.js:
> $("#divMain").append("<div id='divGrey'></div>");
> $("#divGrey").load("path/theiframe.htm");
>
> theiframe.htm has:
> <html><head><script type="text/javascript">
> var GB_ROOT_DIR = "path/scripts/";
> </script>
>
> <script type="text/javascript" src="path/scripts/AJS.js"></script>
> <script type="text/javascript" src="path/scripts/AJS_fx.js"></script>
> <script type="text/javascript"
> src="path/scripts/gb_scripts.js"></script>
> <link href="path/scripts/gb_styles.css" rel="stylesheet"
> type="text/css" media="all" />
> </head><body>
>
> <iframe src="path/insideofiframe.htm" id="ub" name="ub" scrolling="no"
> width="67px"
> height="40px" frameborder="0"
> allowtransparency="yes"></iframe></body></html>
>
> And insideofiframe.htm has:
> <a href="http://www.google.com"; onclick="return GB_showCenter("Google",
> this.href, 640, 480)">Google</a>
>
> Just in case the main page has also:
> <script type="text/javascript">
> var GB_ROOT_DIR = "path/scripts/";
> </script>
>
> <script type="text/javascript" src="path/scripts/AJS.js"></script>
> <script type="text/javascript" src="path/scripts/AJS_fx.js"></script>
> <script type="text/javascript"
> src="path/scripts/gb_scripts.js"></script>
> <link href="path/scripts/gb_styles.css" rel="stylesheet"
> type="text/css" media="all" />
>
> But the result is Google's page inside of the iframe ... what am I
> doing wrong??
> Thanks a lot once again!
>
> Logos escribió:
> 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!!
>
>
>
>
> --
> Araceli Domínguez Muelas
> Desarrollo de Producto
> <!-- vivocom
> T.(34) 91 542 8424
> F.(34) 91 542 8445
> www.vivocom.es
> www.vivocom.tv
> www.negopolis.tv
> www.cruzroja.tv
>
> ******VivoCom Confidentiality and Security Notice******
>
> This e-mail message is CONFIDENTIAL and may contain legally privileged
> information. If you are not the intended recipient you should not read,
> copy, distribute or disclose this e-mail or otherwise use the
> information in this e-mail. Please telephone, e-mail or fax us
> immediately and delete the message from your system. The addressee
> cannot use or quote this e-mail other than for the referenced matter.
> Security Warning: e-mail is susceptible to delivery failures which may
> result in non-delivery or delayed delivery, and is also susceptible to
> data corruption, interception and unauthorised amendment, and we do not
> accept liability for any of the above or the consequences thereof.
> Viruses: Although we have taken steps to ensure that this email and
> attachments are free from any virus, we advise that in keeping with
> good computing practice the recipient should ensure they are actually
> virus free.
>
> Este e-mail es CONFIDENCIAL y puede contener información legalmente
> privilegiada. Si usted no es el destinatario al que va dirigido, no
> debe leer, copiar, distribuir o comunicar este mensaje, ni hacer uso de
> la información que contiene. Por favor, llámenos o mándenos un fax o un
> e-mail y borre este mensaje de su sistema. El destinatario sólo puede
> usar o citar este e-mail para el asunto mencionado en la referencia.
> Advertencia de seguridad: los e-mail están expuestos a fallos de envío
> que pueden dar lugar a que no lleguen a su destinatario o lo hagan con
> retraso; también están expuestos a corrupciones de su contenido, y
> pueden ser interceptados o modificados por terceros no autorizados;
> esta Firma no se hace responsable de ninguno de dichos problemas, ni de
> las consecuencias que puedan causar. Virus: aunque hemos tomado medidas
> para asegurarnos de que este correo electrónico y los archivos adjuntos
> estén libres de virus, recomendamos que, de acuerdo con las buenas
> prácticas informáticas, el receptor se asegure de que realmente están
> libres de virus.
>
> *********[http://www.vivocom.es] ****************** *
--~--~---------~--~----~------------~-------~--~----~
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