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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:08:24+00:00 2026-05-27T07:08:24+00:00

Ok I have installed FB 2.0.x and it’s really nice. But, I have a

  • 0

Ok I have installed FB 2.0.x and it’s really nice. But, I have a page with 4 videos on it using the JW Player. Currently, when you click on a link it runs a function to open a fancybox instance. The fancybox is a set of HTML code. Inside the html code is a div with an id (unique for each div/video). Then, it adds the flashvars, params and attributes. The function is below:

function show_modelpopup(id,title,filepath,base_url) {
    var flashvars = { file: base_url+"uploads/videos/original/"+filepath, autostart:'true', skin: base_url+'js/skin.zip'};
var params = { allowfullscreen:'true', allowscriptaccess:'always', wmode: 'transparent'  };
var attributes = { id: id+'player', name: id+'player' };                             
swfobject.embedSWF(base_url+'mediaplayer/player.swf','container'+id, 480, 385, '9.0.115', 'false', flashvars, params, attributes, flashloaded);
}

And when the flashvars, params and attributes are done being setup, it runs swfobject.embedSWF and the last option is the function to run when it’s done loading the video:

function flashloaded() {
    jQuery('#shadowbox_archives').fancybox({
        padding: 10,
        type: 'html',  
        height: 520,
        width: 600
    });
    jQuery.fancybox.open(jQuery('#shadowbox_archives'));
}

And this all works GREAT. It loads the window and you see the flash player. But when you click the play button it gives “The requested content cannot be loaded. Please try again later.”. I’m using firebug on Firefox to console log things and I verified the flv file path IS correct. In fact, I have the homepage set to display the very same video but not inside the fancybox. The output from the swfobject js are below:

Fancybox Popup:

    <object id="45player" width="480" height="385" type="application/x-shockwave-flash" name="45player" data="http://www.green-scene.com/mediaplayer/player.swf">
    <param name="allowfullscreen" value="true">
    <param name="allowscriptaccess" value="always">
    <param name="wmode" value="transparent">
    <param name="flashvars" value="file=http://www.green-scene.com/uploads/videos/original/video_45_1318559535.flv&autostart=true&skin=http://www.green-scene.com/js/skin.zip">
    </object>

Home Page (non fancybox):

    <object id="45player" width="480" height="385" type="application/x-shockwave-flash" name="45player" data="http://www.green-scene.com/mediaplayer/player.swf">
    <param name="allowfullscreen" value="true">
    <param name="allowscriptaccess" value="always">
    <param name="wmode" value="transparent">
    <param name="flashvars" value="file=http://www.green-scene.com/uploads/videos/original/video_45_1318559535.flv&autostart=true&skin=http://www.green-scene.com/js/skin.zip">
    </object>

The home page has no issues. But the fancybox does. So what am I missing?

I appreciate all your help!

UPDATE Interesting discovery just made. If I click the button in the player control bar to expand to full screen, it will go full screen and I can click play to actually play it. If I click the button to return to normal size (or hit esc) it continues to play in the fancybox. But then if I try to click pause it disappears and gives me the same error message.

UPDATE #2 Turns out the Internet Explorer likes the above and it works just fine. But Firefox and Safari give me the same error above. It’s mind boggling.

UPDATE #3 I was able to get the video to autoplay when the shadowbox opens, but now you can’t pause or go fullscreen in Firefox or Safari on Mac. But IE 8/9 still work just fine.

  • 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-27T07:08:25+00:00Added an answer on May 27, 2026 at 7:08 am

    OK, I had a look at your page and I saw that each thumb fires a function onclick:

    onclick="return show_modelpoup('//parameters')"
    

    the function show_modelpoup(), which is located inside the archives.js file builds the content of a DIV with id="shadowbox_archives" via jQuery html()

    jQuery('#shadowbox_archives').html();
    

    but also binds Fancybox to the same selector

    jQuery('#shadowbox_archives').fancybox();
    

    … later, the same function fires Fancybox (no shadowbox) with the API method $.fancybox.open() … so far so good !?!?

    What is happening here is that the actual content inside of Fancybox is a DIV with id="shadowbox_archives" (also bound to Fancybox), so every time you click on any part inside of such DIV, either your swf controls or elsewhere (even on an empty space) it tries to fire Fancybox again (with no indication of what the content should be this time) hence the error “The requested content cannot be loaded. Please try again later.”

    Binding Fancybox to the same content (selector) that will be opened in Fancybox creates a loop effect, so you would need to re-formulate your show_modelpoup() function to change that,

    … or maybe you just need to modify the flashloaded() function (inside show_modelpoup()) in a way that it does directly fire Fancybox after the flash content has been loaded, like:

    function flashloaded() {
        jQuery.fancybox({
            href: '#shadowbox_archives',
            padding: 10,
            type: 'html',  
            height: 520,
            width: 600
        });
        // jQuery.fancybox.open(jQuery('#shadowbox_archives'));
    }
    

    Notice that I commented out the API method $.fancybox.open()

    UPDATE:

    Since you are using inline content, your flashloaded() function should look like:

    function flashloaded() {
        jQuery.fancybox({
            href: '#shadowbox_archives',
            autoSize: false,
            padding: 10,
            type: 'inline',  // no html
            height: 520,
            width: 600
        });
        // jQuery.fancybox.open(jQuery('#shadowbox_archives'));
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed my dependencies using bundle package Then transferred them to the offline
I have installed pyglet onto Mac OS X 10.7.4 using MacPorts. pyglet only works
We have installed OpenDataKit (ODK) Aggregate and we are using a MySQL Database. I
I have installed C++SDK that have Qt but when I try compiling a code
I have installed new site in Joomla 1.7 and its working fine, but when
I have installed wxWidgets 2.9.3 on Ubuntu 10.10 using ../configure --with-gtk I am using
I have installed rvm (mutiuser option) and ruby using rvm install on my test
I have installed mySQL using sudo apt-get install mySQL-server then i have installed libmysqlclient15-dev
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have installed tomcat 6 and 7 to the port 8080. I am using

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.