Hello,
I'm not to sure where the best place is to post this but I need help with JavaScript to reload page on closer of shadowbox. http://www.mjijackson.com/shadowbox/
The problem is I have a button that when clicked loads up shadowbox with form inside to add products. When the form is submit and shadowbox closes I have to reload the page manually for the entries to appear. Is there some sort of code that could reload the page automatically on closure of the shadowbox. I notice is the shadowbox.js the follow line onClose:null, and thought maybe it could be something to do with this but my JavaScript skills are minimal.
Thanks in Advance.
<script type="text/javascript">
function closeSelf()
{
var close=document.getElementById('shadowbox_nav_close'); // ID of the "x" image?
close.onclick=function()
{
Shadowbox.close();
location.reload();
}
}
window.addEventListener?window.addEventListener('load',closeSelf,false):
window.attachEvent('onload',closeSelf);
</script>