It's straight javascript :)

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

On Jan 23, 12:53 pm, Jan Dante <[email protected]>
wrote:
> I suppose I need to learn JavaScript real quick.
>
> The code you give me is just Javascript? Or does it use a Greybox
> feature?
>
> Annywho... it works perfect! thanks
>
> On Jan 23, 5:17 pm, Logos <[email protected]> wrote:
>
> > The page that you return after logging in just needs to have some
> > javascript in it to redirect the main page to index.php.
>
> > (eg) top.location.href='index.php';
>
> > Easy-peasy.
>
> > --
> > Tyler Stylehttp://malthusian-solutions.comhttp://nirdvana.com
>
> > On Jan 22, 1:03 pm, Jan Dante <[email protected]> wrote:
>
> > > Hi,
>
> > > I wonder if there is any simple solution for the following.
>
> > > I have a login script (existing script modified for my site) that pops
> > > up in greybox. When clicked on Login a function is called which checks
> > > if the login is correct an then goes to a page. This is written in
> > > PHP. To refer to an page the following code is used => header
> > > ("Location: index.php");
>
> > > This is working but off course the referral page is opened inside the
> > > greybox. I would like the greybox to close and the index.php page to
> > > reload.
>
> > > I've tried adding code like this in php => header("Location: index.php
> > > onclick=\"parent.parent.GB_hide();\"");
> > > But that is not working.
>
> > > My thoughts are that I should check in my login page (the one in
> > > greybox) if the user is already logged in. If he is logged in give a
> > > message like: "You are now logged in. This page closes automatically
> > > in 2 seconds". But I don't know how to do this.
>
> > > Any help please?
--~--~---------~--~----~------------~-------~--~----~
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