Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7166129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:21:49+00:00 2026-05-28T14:21:49+00:00

Ok I had asked a question before about how to open fancybox from an

  • 0

Ok I had asked a question before about how to open fancybox from an iframe to the parent page. And the solution worked like a charm and still works. Now I’ve been asked for it to show the left, right arrows but it seems that the code to open in parent page causes it not to show the buttons? :S here’s what I have so far:

<link rel="stylesheet" type="text/css" href="css/jquery.fancybox-buttons.css?v=2.0.3" />
<script type="text/javascript" src="js/jquery.fancybox-buttons.js?v=2.0.3"></script>

 <link rel="stylesheet" type="text/css" href="css/jquery.fancybox-thumbs.css?v=2.0.3" />
 <script type="text/javascript" src="js/jquery.fancybox-thumbs.js?v=2.0.3"></script>
 <script>
     /* <![CDATA[ */
     $(document).ready(function() {
    $('.fancybox-buttons').click(function(e){
    e.preventDefault();
    parent.$.fancybox({
            openEffect  : 'none',
            closeEffect : 'none',

            prevEffect : 'none',
            nextEffect : 'none',

            closeBtn  : false,

            helpers : {
                title : {
                    type : 'inside'
                },
                buttons : {}
            },
            href: this.href
        });
    });
       }); // ready
       /* ]]> */
     </script>

if I change this:

$('.fancybox-buttons').click(function(e){
    e.preventDefault();
    parent.$.fancybox({

to

$('.fancybox-buttons').fancybox({

it works, except that it doesn’t open in my parent page. Help please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:21:50+00:00Added an answer on May 28, 2026 at 2:21 pm

    Are you sure you have loaded in both pages, the parent page and the iframed page, all jquery and fancybox css and js files (including the buttons and thumbs js and css files)?

    On the other hand, you said that if you remove the parent reference then the code shows the left/right nav arrows? that would be weird since you are using the “manual” call method (to open in the parent page), where you cannot have the default galleries unless you set your galleries manually within your custom script like:

    $('.fancybox-buttons').click(function(e){
     e.preventDefault();
     parent.$.fancybox([
      {href:'images/01.jpg', title: '01'},
      {href:'images/02.jpg', title: '02'},
      {href:'images/03.jpg', title: '03'}
     ],{
      // href: this.href // not needed
      // other options, e.g.
      helpers : {
       title : {
        type : 'inside'
        },
       buttons : {}
      },
      ......etc.
     }); // fancybox
    }); // click
    

    I updated my demo page here if you want to check it out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had asked one question about this error before ( Android StackOverflowError in ViewGroup.resetResolvedTextDirection
This question may have been asked before, but I had trouble finding an answer,
I had asked a question about parsing a file in ruby. I accepted an
Before I asked this question I had a look through the search results for
I asked this question before, but had a hard time showing which edits I
OK, I had asked a similar question before and had got an answer but
I had asked a question earlier( How to keep this counter from reseting at
Sorry I know similar question have been asked many times before but like most
I had asked a question before relating to what I believed to be the
I know, variations of this question had been asked before. But my case may

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.