October 27th, 2009, 11:53 AM
SuperBox! - close "window" via link or button within "window"
I've searched Google etc. for ages! and cannot see resource on how to close the SuperBox model window via a button and/or a link from within the model - for example - within an iframe model.
SuperBox! link - http://www.pierrebertet.net/projects/jquery_superbox/
I know there is the "link" at the top of the model which will close the model "window", but I would like the choice to close it via a button and/or link within the iframe model...
Has anyone came across this and has a solution to this method?
Many thanks in advance for any help!
October 27th, 2009, 01:04 PM
So instead of 'document.[etc]' use 'window.parent.document.[etc]'
Or just use AJAX
Last edited by s-p-n; October 27th, 2009 at 01:33 PM.
- The Wise Guy
October 28th, 2009, 05:58 AM
Hi - thanks for your reply. I will implement the AJAX mode and perhaps try the Content mode as well.
Originally Posted by s-p-n
Saying this still, how do I use a link within the content to close the model window, instead of clicking the "Close" button-link attached to the model window itself?
Some content here...blablabla
<a href="#closethiswindow???">Close Window</a>
October 28th, 2009, 03:27 PM