Basically, I love fancyboxes inside of fancyboxes for data entry. Problem is when I am done, I wish that it would refresh the fancybox that called it!
Take the example below. I have a report on The Browser Window, Then details on the First Fancy box, then inside and called from it, a fancybox so I can throw a note in…. After I am doing adding the note, and the fancy box is unloaded, I would like to fire a refresh on the parent fancybox, or whatever called it (7 fancyboxes, close #7 and #6 refreshes)
https://lh4.googleusercontent.com/-PZlJoSXZSj0/UDWnwAkat0I/AAAAAAAAAPE/SyAPgaSTc1Y/s1600/test.jpg
This code I have here always refreshes the window in the above example. I wish I could get it to refresh the fancybox’s parent fancybox!
$('.'+sFancy).fancybox({
'href' : this.href,
'width' : '100%',
'height' : '100%',
'fitToView' : false,
'autoSize' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'speedIn' : 200,
'speedOut' : 500,
'type' : 'iframe',
'onClosed' : function(){
self.parent.location.reload(true);
}
});
This works for my purposes now.
I have added a function dynamically to fancybox for the last one closed being closed to refresh the parent.
This would answer the question I initially asked: