Close and refresh/reload parent.

6 messages Options
Embed this post
Permalink
quake101

Close and refresh/reload parent.

Reply Threaded More More options
Print post
Permalink
Has anyone successfully done this? I'm currently getting an error "parent is null" using the following code.

    parent.Shadowbox.close();
    parent.location.reload();
Desiredin

Re: Close and refresh/reload parent.

Reply Threaded More More options
Print post
Permalink
This seems to work for me:
CLOSE 
Desiredin

Re: Close and refresh/reload parent.

Reply Threaded More More options
Print post
Permalink
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
quake101

Re: Close and refresh/reload parent.

Reply Threaded More More options
Print post
Permalink
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. :)
Touffik

Re: Close and refresh/reload parent.

Reply Threaded More More options
Print post
Permalink
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
ravishsehgal

Re: Close and refresh/reload parent.

Reply Threaded More More options
Print post
Permalink
In reply to this post by quake101
Hi i am new to j-script and i m using shadowbox and its working now what i need is when i close the window with x button i want to refresh the parent page. steps to implement this functionality will be appreciated as i don't know anything about j-script.
thanks
looking forward for reply

kind regards
Ravish Sehgal