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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:32:01+00:00 2026-05-31T23:32:01+00:00

All, I’ve got the following code to load a page in Fancybox: $(#display_songs).fancybox({ ‘href’

  • 0

All,
I’ve got the following code to load a page in Fancybox:

$("#display_songs").fancybox({
    'href'      : 'my_page.php',
    'autoScale' : true,
});

This loads my page fine now but this page pulls some data from my database and loads divs based on how many rows. If I have a lot of data Fancybox goes past my current viewport on my page. I’d like to allow Fancybox to display the pop up box in the viewport and add scroll bars to it so the user can scroll that way. How can I do that?

I also tried to make my content an iframe but then it doesn’t autosize my iframe:

$("#display_songs").fancybox({
    'type' : 'iframe',
    'href' : 'my_page.php',
});

EDIT: I guess I could probably set the width and height but I don’t want it that big if the content is only like 300 X 300.

  • 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-31T23:32:02+00:00Added an answer on May 31, 2026 at 11:32 pm

    It sounds like you’re using the Fancybox “AJAX” load functionality rather than the IFRAME functionality (which would give you scrollbars).

    You didn’t specify if you’re using Fancybox 1 or 2, but in 1, you’d initialize IFRAME like this:

     $("#display_songs").fancybox({
     'href'      : 'my_page.php',
     'autoScale' : true,
     'type'      : 'iframe'
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All, Say I have the following bit of code: select: function(start, end, allDay) {
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
All, I have the following code: $fetch = mysql_query(SELECT * FROM calendar_events where event_status='booked'
All the code/commands below are part of a PHP script that processes images from
All, I'm going to use a QR code from the following URL: http://qrcode.kaywa.com/ I
All, If I run a query like the following: $qry = Select wrong_column from
All, If I've go the following database fields/values: user_id field_name field_value 1 EventHour1 1
All my code is here,quite simple,and I don't konw where it goes wrong. Person
All, See the code below: function menu() { this.menuitem=[]; this.submenu=[]; this.menuitem[0] = $('div#sivname1'); this.menuitem[1]
all I want to calculate the height of the page ,and in my test.less

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.