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 7939855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:13:33+00:00 2026-06-03T23:13:33+00:00

i cant open a iframe using fancybox which is calling the external php script

  • 0

i cant open a iframe using fancybox which is calling the external php script file
and this is the anchor tag i used to call
<a id="iframe" href="gallery.php" >Gallery</a>

jQuery(document).ready(function() {
      jQuery("#iframe" ).fancybox({
        'width'             : '75%',
        'height'            : 885,
        'autoScale'         : false,
        'transitionIn'      : 'none',
        'transitionOut'     : 'none',
        'type'              : 'iframe',
        'href'              : "gallery.php"
    });

});

the gallery.php file is on same folder
also the calling page is also on php

  • 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-06-03T23:13:34+00:00Added an answer on June 3, 2026 at 11:13 pm

    Please go through this list and make sure you have done each one:

    • Included the jquery library and ensured it is including it correctly (this can be done by using “firebug” and the “net” tab).
    • Included both the fancybox css and javascript library, again checking they have both been included successfully.
    • Try using an exact path e.g http://www.test.com/gallery.php

    Here is an example of what your html file should look like:

    <script type="text/javascript" src="http://www.test.com/jquery-1.4.3.min.js"></script>    
    <script type="text/javascript" src="http://www.test.com/jquery.fancybox-1.3.4.pack.js"></script>
    <link rel="stylesheet" type="text/css" href="http://www.test.com/jquery.fancybox-1.3.4.css" media="screen" />
    
    <script type="text/javascript">
        $(document).ready(function() {
            $("#iframe" ).fancybox({
                'width'             : '75%',
                'height'            : 885,
                'autoScale'         : false,
                'transitionIn'      : 'none',
                'transitionOut'     : 'none',
                'type'              : 'iframe',
                'href'              : "http://www.test.com/gallery.php"
            });
        });
    </script>
    
    <a id="iframe">Gallery</a>
    

    If you go through these steps and ensure your html looks exactly as I have said, you should have no issues.

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

Sidebar

Related Questions

I'm using colorbox to open an iframe, inside which i'm calling jscrollpane to allow
The code chokes at fopen(): <?php ini_set('display_errors',1); error_reporting(E_ALL); $fp = fopen(/path/to/file/some_file.txt,a) or die(can't open
I'm using Eclipse, and after a restart, I suddenly can't open PHP files. When
Folks, I'm trying to open a youtube video in fancybox using the following code:
If I open a file in my C/C++/Java code using a pathname that goes
I have used Fancybox on multiple occasions and never run into this problem. I
I cant seem to find out how to get my ListView (OnListItemClick), to open
I can't open an Excel spread sheet with .NET on an x64 server using
how can I open a modal window using javascript only. I can't use own
I am using an iframe and in the iframe I am loading a dynamic

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.