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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:33:00+00:00 2026-06-07T12:33:00+00:00

Well, I have figured something out… but I still need a litle help. btw.

  • 0

Well, I have figured something out… but I still need a litle help. btw. sorry for making a new post.

This is the oryginal shadowbox code:

<script type="text/javascript">
Shadowbox.init({
                // skip the automatic setup again, we do this later manually
                skipSetup: true
            });

            window.onload = function () {

                // set up all anchor elements with a "test" class to work with Shadowbox
                Shadowbox.setup("a.shadowbox", {
        player:     "html",
        title:      "Welcome"
                });

            };
</script>

And the script that should help me to make it work with ajax loaded links was this:

$('.shadowbox').live('click', function() {
                Shadowbox.open(this);
                return false;
}); 

But it wasnt helping, so I made this:

$('.shadowbox').live('click', function() {
        Shadowbox.setup("a.shadowbox", {
        player:     "html",
        title:      "Welcome"
                });
                Shadowbox.open(this);
                return false;
}); 

And now it’s working but I think this line:

Shadowbox.open(this);

is no more needed there anyways when I delete it, the script works but it need 2 clicks on the link to start, anyone can help me how to optymalize it?

Greetings.

  • 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-07T12:33:01+00:00Added an answer on June 7, 2026 at 12:33 pm
    $('.shadowbox').live('click', function() {
            Shadowbox.setup("a.shadowbox", {
            player:     "swf"
                 });
            Shadowbox.open(this);
            return false;
    });

    Thank you Michail the above code working for me when the page loading in ajax.I have display YouTube video in popup window by using Shadowbox Media Viewer plugin and above code in joomla.

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

Sidebar

Related Questions

I have a menu working fairly well but can't figure out how to make
EDIT: I'm sorry for making this thread as I've figured out the problem. Here's
edit: I figured it out. Well almost :) I fixed this issue, but I
well i have most probably an extremly stupid problem but could not figure it
i have a problem with saving something and am officially out of ideas. what
Sorry, I am still new using jquery so this might be an easy question.
So I've run into something and was wondering if you could help me out.
I figured this would be something that would be fairly-well documented as its a
I have recently figured out that I haven't been using regex properly in my
well i have a configuration like this in the components part of my config

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.