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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:29:56+00:00 2026-05-22T17:29:56+00:00

Here is my situation. I have a webpage (not quite finished): http://grapplingbasics.com/beta.php I have

  • 0

Here is my situation. I have a webpage (not quite finished):

http://grapplingbasics.com/beta.php

I have the page slide to a specific div which puts a a url with a hash in the URL bar. If the user refers to this URL they can hit that specific part of the page.

However, I would like to allow them to hit that part of the page AND load a specific video with one address.

It doesn’t seem that you can put a query string and hash dealy together like so: http://www.blah.com/index.php#BLAH?neat=one

originally i tried turning the hash into part of the querystring, and then using split in jquery to assign it into a hash on the fly. However, the problem with this, is that if I return false to the nav, it wont show the querystring on the URL bar, and if i don’t return false, then it wants to navigate to something that isnt there!

What’s a possible solution here?

  • 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-22T17:29:57+00:00Added an answer on May 22, 2026 at 5:29 pm

    I created a little example for you which should explain how you can get this fixed.

     <script type="text/javascript">
    
        function getParameterByName(name) {
            name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
            var regexS = "[\\?&]" + name + "=([^&#]*)";
            var regex = new RegExp(regexS);
            var results = regex.exec(window.location.href);
            if (results == null)
                return "";
            else
                return decodeURIComponent(results[1].replace(/\+/g, " "));
        }
    
    
        $(function () {
            $('a').click(function (event) {
    
                var thisHash = document.location.hash;
    
                $('body').animate({ scrollTop: $(thisHash).offset().top }, function () {
                    if (getParameterByName('neat') != null) {
                        alert('I will play video ' + getParameterByName('neat'));
                    }
                });
            });
        });
    
    </script>
    

    Html:

    <a href='?neat=one#end'>Go</a>
    
    <p id='end'>Imagine this is a panel you are going to in your example.</p>
    

    The code above firstly has a getParameterByName function which looks into your URL to find your query string value pairs. and if its not null it returns its value.

    in the section below that …imagine that the anchor tag is your navigation and I clicked on it, then the page animates to the correct hash section. Once the animation is completed in the callback section is asks for the query string value. if it you have set a value for “neat” then your code for playing the video should sit where the alert is now.

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

Sidebar

Related Questions

Here's the situation I have a webpage which has one drop down called prefer.
Here is my current situation: I have a web page containing a couple scrollable
Here is the situation: I have a link of a page that gives only
Here is my situation. I have a web page for users to create their
Here is the situation: I have a webpage that I have scraped as a
Here is my situation: i have a page once clicking on one of it's
Here's the situation: I have a label's text set, immediately followed by a response.redirect()
Here is the situation: I have been called upon to work with InstallAnywhere 8,
Here's the situation: we have an Oracle database we need to connect to to
Here is my situation: I have an application that use a configuration file. 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.