0

this is working fine

        function openContent (id) {
            $.fancybox('<h1>Lorem lipsum</h1>');
        }

but when I try to open an iframe, nothing happens

        function openContent (id) {
            $.fancybox.open({href:'http://www.google.com'});
        }

no error message in firebug or chrome console. i'm trying in localhost.

any idea?

Leabdalla
  • 656
  • 9
  • 19
  • If you want to open an iframe you have to tell fancybox the type of content. Check http://stackoverflow.com/a/13869696/1055987 for further reference and explanation – JFK Jun 26 '13 at 16:09
  • you may also want to check this http://stackoverflow.com/a/14828632/1055987 regarding some iframe issues. – JFK Jun 26 '13 at 16:12

1 Answers1

1
 X-Frame-Options:SAMEORIGIN

header is set in www.google.com, you cannot open www.google.com in iframe if your site is not in google.com.

Balaji Sivanath
  • 506
  • 4
  • 14