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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:08:25+00:00 2026-06-12T03:08:25+00:00

I am looking to perform actions after loading the twitter bootstrap carousel. Some event

  • 0

I am looking to perform actions after loading the twitter bootstrap carousel. Some event that the carousel triggers when its ready or anything I can tap into.

I am trying to make the carousel goto a particular slide based on query parameters in the URL. Right now my code looks like this:

function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
    vars[key] = value;
});
return vars;
}

if (window.location.href.match('\\goto=')) {
    var match =  getUrlVars()['goto'];
    $('.carousel').carousel(match);
}

This will obviously not work until the carousel has loaded and is ready. I don’t want to use delay.

  • 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-12T03:08:26+00:00Added an answer on June 12, 2026 at 3:08 am

    The Carousel plugin has methods to scroll to a particular slide. For example, if your URL is carousel.php?slide=1, then in JavaScript you could have:

    <script>
        $('.carousel').carousel();
    </script>
    <?php if (isset($_GET['slide'])): ?>
    <script>
        $('.carousel').carousel(<?php echo intval($_GET['slide']); ?>);
    </script>
    <?php endif; ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to perform a REGEX on a MongoDB find query that only finds
I need to perform some actions periodically on my GTK Ruby program and i
I have a Java project running on Glassfish that renders some ugly looking HTML.
I'm looking to perform Microsoft Word automation -- straightforward stuff such as instructing Word
I'm looking to perform a conversion of the values in a Ruby hash from
Several databases I've been looking at recently implement a virtual machine internally to perform
I am working on a system that performs continuous integration and I am looking
Looking at some assembly code for x86_64 on my Mac, I see the following
I'm looking for some ideas to do the following. I need a PHP script
Is there anything like a session ID that prevents the same session for having

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.