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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:31:28+00:00 2026-05-27T18:31:28+00:00

So, I’m trying to make a single page list with thumbnails, and when you

  • 0

So, I’m trying to make a single page list with thumbnails, and when you click on them..video will basically popup. I’m using as a player the latest JW Player (5.8) and latest jQuery.

Everything works well, however, only on the first “pop”. When I close my first “pop” and open a new video, the player doesn’t load.

I first though, that the problem is, that I’m .remove()‘ing the player-container (for the obvious reason, that videos wont stay playing on the background and/or that videos wouldn’t get mixed up generally). However it wasn’t the .remove().

My plugin-function to pop the videos is:

$.fn.AllfilmVideoPopper = function () {
    return this.each(function () {
        var permalink = $(this);

        $(permalink).click(function () {
            $('body').append(
                $body_overlay = $('<div class="body_overlay" />').append(
                    $wrapper = $('<div id="video_popper_wrapper">').append(
                        $closing_button = $('<div id="video_close" />'),
                        $player = $('<div id="video_popper" />')
                    ).centerit()
                )
            );
            $body_overlay.fadeIn();

            jwplayer("video_popper").setup({
                flashplayer: vp_video_player,
                file: 'http://www.youtube.com/watch?v=WrjwaqZfjIY',
                width: 800,
                height: 400,
                skin: vp_video_skin
            });

            $closing_button.click(function () {
                $body_overlay.fadeOut('fast', function () {
                    // $player.remove();
                })
            });

            return false;
        });

    });
};

Code is still raw, as I’m developing it. With only one test video

Note: vp_video_player and vp_video_skin are predefined JW Player files related parameters, that basically include the CMS’s theme-location to the player.swf and skin location.

  • 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-27T18:31:29+00:00Added an answer on May 27, 2026 at 6:31 pm

    So what I did, was I created a standalone page, that has JW Player in it. Only thing PHP in it, is the $_GET[‘vid’] to the source-file-video-file-url.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Video</title>
        <style>
            html, body {height: 100%; margin: 0px; padding: 0px; background: #000000;}
        </style>
        <script type="text/javascript" src="jquery.js"></script>
        <script type="text/javascript" src="jwplayer.js"></script>
    </head>
    <body>
        <div id="player"></div>
        <script type="text/javascript">
            jwplayer("player").setup({
                flashplayer: "player.swf",
                file: "http://www.youtube.com/watch?v=<?= $_GET['vid'] ?>",
                width: 800,
                height: 400,
                skin: "glow.zip"
            });
        </script>
    </body>
    </html>
    

    Then I modifed my launcher script’s 1 line:

    $player = $('<div id="video_popper" />')
    

    to

    $player = $('<iframe src="iframe.php?vid=' + vid + '" id="video_popper"></iframe>')
    

    Then removed the original player-loading-function alltogether
    jwplayer(“video_popper”).setup(); // etc..

    And it basically seems to work like I originally wanted. And no pre-generated hidden on the background content is needed for this, as iframes are pretty outdated, however still dynamical in their nature.

    See it working here: http://www.alta.ee/groomlake/jw-player-popup-problem/video-list.html

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

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm trying to create an if statement in PHP that prevents a single post
I'm making a simple page using Google Maps API 3. My first. One marker
I am trying to understand how to use SyndicationItem to display feed which is
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the

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.