Close and refresh/reload parent.

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Close and refresh/reload parent.

quake101
Has anyone successfully done this? I'm currently getting an error "parent is null" using the following code.

    parent.Shadowbox.close();
    parent.location.reload();
Reply | Threaded
Open this post in threaded view
|

Re: Close and refresh/reload parent.

Desiredin
This seems to work for me:
CLOSE 
Reply | Threaded
Open this post in threaded view
|

Re: Close and refresh/reload parent.

Desiredin
In reply to this post by quake101
Put this in your "A" tag. Couldn't include the tag in the post as it's being parsed.
href='' onClick="parent.location.reload();parent.Shadowbox.close()">CLOSE
Reply | Threaded
Open this post in threaded view
|

Re: Close and refresh/reload parent.

quake101
In reply to this post by quake101
I fixed it, I had close shadowbox before the refresh which was un-setting parent. Dur.... Thanks guys. :)
Reply | Threaded
Open this post in threaded view
|

Re: Close and refresh/reload parent.

Touffik
Hey in deed it does works for me but imagine the user exits the page with the closing cross on the right ?
it won't execute the reload..

have you got an idea ?

thanks you
Reply | Threaded
Open this post in threaded view
|

Re: Close and refresh/reload parent.

vikasshah
This post was updated on .
In reply to this post by quake101
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Close and refresh/reload parent.

Anny
In reply to this post by Desiredin
Thanks