Hi, I was wondering if it is possible to return a variable back from fancybox to the parent when the child is closed?
Any information is greatly appreciated.
Hi,
Phil
EDIT **
function cleanUp(){ var bla = $("#fancybox-frame").contents().find('input[name=pd_id]'); alert(bla.val()); } $("#tree .product a[class!=copy]").fancybox({ 'width' : 770, 'height' : '95%', 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe', 'onCleanup' : cleanUp });
Phil jackson
source share