Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not close popup window using Modal in joomla

I have opened an popup window in Joomla 1.5 using modal.js. It's a SqueezeBox. I'm tried call close this popup on popup content but can't.

In Chrome it get an message

Uncaught TypeError: Cannot read property 'x' of undefined

like image 689
user565017 Avatar asked Dec 10 '25 13:12

user565017


1 Answers

Please check this code.

<script type="text/javascript">
    window.setTimeout('closeme();', 5000);
    function closeme()
    {
        parent.SqueezeBox.close();
    }
</script>

Hope this will helps you...

like image 142
Basith Avatar answered Dec 12 '25 01:12

Basith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!