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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:18:22+00:00 2026-05-30T16:18:22+00:00

Is there a way to allow users to specify how many slides they want

  • 0

Is there a way to allow users to specify how many slides they want the slider to have. As well as from which HTML page they want the content to be loaded in each slide using an AJAX call in jQuery.

Because the slide i made uses the jQuery .load() call to load content into each specific slide whenever it comes into view, and sets the window.location.hash to a certain value for each slide; I would like the users to be able to specify the values for these two things.

In other words specify the URL address the .load() method pulls for each slide, as well as what the hash tag will be when each slide shows.

The .load() URL address is meant to be different for each slide as well as the hash tag.

So for example: Slide to slide number two, the content from a url specified only for slide two is loaded and the hash tag is changed to some user specified value.

Slide to slide number three, the content from a url specified value for slide three is loaded, and hash tag is changed to some other user specified value.

Is there a way to achieve these things by allowing the user to chose the amount of slides they want to have instead of having a set amount of slides?

Also is there a way to have the user specifications sorted in a array such as:

    var slideshash = ["#userSpecifiedHash1", "#userSpecifiedHash2"];

If anybody can give me an idea how this can be done, or if its possible; or direct me to an article or tutorial related to this, i would be grateful.

  • 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-30T16:18:24+00:00Added an answer on May 30, 2026 at 4:18 pm

    I find path.js routing library to be extremely helpful in situations like you explained. Loading certain content and calling functions based on urls/hash tags is made easy…

    There are a few samples located on the project GitHub @ HERE

    Edits:

    I’m not too sure on your logic behind your hashes but here is how I would do it with PathJS and jQuery. Keep in mind that in this example, we are simply adding more routes and not taking them away…

        <script type="text/javascript">
        var slidehash = new Array();
    
        function go(){  
                Path.map(slidehash[0]).to(function(){
                    alert("#1 hash found: "+slidehash[0]);
                });
                Path.map(slidehash[1]).to(function(){
                    alert("#2 hash found: "+slidehash[1]);
                });
                Path.map(slidehash[2]).to(function(){
                    alert("#3 hash found: "+slidehash[2]);
                });
            Path.listen();
        }
    
        $(function() {  
            $('#save').click(function() {
                slidehash[0]=$(".changeMe:eq(0)").val();
                slidehash[1]=$(".changeMe:eq(1)").val();
                slidehash[2]=$(".changeMe:eq(2)").val();
                go();           
            });
    
        });
        </script>
    <ul id="inputList">
        <li><input class="changeMe" type="text" value="#/test"></li>
        <li><input class="changeMe" type="text" value=""></li>
        <li><input class="changeMe" type="text" value=""></li>
    </ul>
    <p><input id="save" type="button" value="Assign hashbang!" /></p>
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to allow an HTML file to open an application on
Just curios if there's a way to have a rewrite for /static/index-discover.html look like
Is there a way to allow a user, after he has created a vector
Is there a way to allow the user to add additional items to one
Using SQL Server 2008, is there a way to allow inserts to a table
Using htmlentities() is there a way I can set to allow only <b> and
I'm hoping there's a way in a config file or something that will allow
is there way how to get name ov event from Lambda expression like with
I have a Silveright app that allows users to specify filters on a few
We have an app that allows users to send e-mails from our system. It

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.