Refresh page when closing shadowbox

4 messages Options
Embed this post
Permalink
borthyn

Refresh page when closing shadowbox

Reply Threaded More More options
Print post
Permalink
I am a complete noob with all of this so please be gentle with me. I have used shadowbox to create a page which has two links to two wmv files. They both pop up in shadowbox properly but there is a weird issue. If I open the first wmv file and then close shadowbox everthing is ok, but if I then open the second wmv file and close it before the file has finished then the audio keeps playing. I checked on the forum and there does not seam to be an easy solution to this but I have found a work around. If I refresh the page then the second wmv file plays and closes properly. However, being a complete novice, I have spent about 4 hours trying to get the page to refresh when I close shadowbox but I have not been able to do so.
I am using the simple  method and have this in the head section of my page

<script type="text/javascript" src="shadowbox/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
    language: 'en',
    players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv'],
});
</script>

I then have a link like so

 href="Videos/wedding1.wmv" rel="shadowbox;height=240;width=320" title="Wedding Video 1 - Small size" >Wedding Video

I would really appreciate it if someone could explain what code I need and where I need to put it so that the original page refreshed when I close this video.
Thanks in advance
Borthyn
Wizzud

Re: Refresh page when closing shadowbox

Reply Threaded More More options
Print post
Permalink
Shadowbox.init({
    language: 'en',
    players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv'], 
    onClose: function(){ window.location.reload(); }
});
Combine literacy with curiosity and a whole world of information opens up to you
Borthyn

Re: Refresh page when closing shadowbox

Reply Threaded More More options
Print post
Permalink
worked perfectly. thank you very much for your time.
ravishsehgal

Re: Refresh page when closing shadowbox

Reply Threaded More More options
Print post
Permalink
In reply to this post by Wizzud
<script type="text/javascript">
Shadowbox.init({
   modal: "false"
onClose: function(){ window.location.reload(); }
});
</script>

 href="http://www.google.com" rel="shadowbox" title="Google">Google

Not Working please help :(