0

Can anyone tell me how to refresh a Fancybox popup ?

Here is how i create it.

       $.fancybox({
        'width'  : 470,           // set the width
        'height' : 190, 
        'autoSize': false, 
        'transitionIn': 'fade', 
        'transitionOut': 'fade', 
        'href': 'pop.jsp', 
        'autoDimension' : false,
        'type': 'iframe',
    }); 
JFK
  • 40,963
  • 31
  • 133
  • 306
af_khan
  • 1,030
  • 4
  • 25
  • 49

1 Answers1

0

You may be able to do it by refering to $('iframe.fancybox-iframe'), with something like this:

$('iframe.fancybox-iframe').attr('src', function(i, val){return val;});

(according to Reload an iframe with jQuery)

example here: http://jsfiddle.net/pataluc/aLbYr/

Community
  • 1
  • 1
pataluc
  • 569
  • 4
  • 19
  • 1
    Although this refreshes the iframe indeed from the parent page, it's not clear if this has to be triggered from the iframe itself after a successful ajax request. In the last case, the iframed page would only need to call `location.reload(true)` – JFK Jun 18 '14 at 15:45