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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:52:41+00:00 2026-06-01T05:52:41+00:00

Clicking a breadcrumb link in github will trigger the directory view area to transition

  • 0

Clicking a breadcrumb link in github will trigger the directory view area to transition to the subdirectory . What is the best way to achieve this effect. I am using asp.net mvc , jquery, jquery ui, and a jquery layout plugin ( http://layout.jquery-dev.net/ ui layout )
Shoud I abandon the layout plugin ?

  • 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-01T05:52:42+00:00Added an answer on June 1, 2026 at 5:52 am

    Well, you can start by using the unique url pattern. To make this sound a little familiar, let’s take for example twitter:

    #searching "stackoverflow"
    https://twitter.com/#!/search/stackoverflow
    

    the hash part is the one after (and including) “#”. using window.location.hash gets it for us. then use string.replace() to remove #!/ and end up with:

    search/stackoverflow
    

    then if we store this value as a variable and do string.split('/'), which is split the value per /, we are returned with this:

    array = ['search','stackoverflow'];
    

    now it looks more like a breadcrumb which we can use to build. if you were in twitter, it would be more like:

    site / search / stackoverflow
    

    and for each breadcrumb link, just append further. if you have segmented urls, it’s pretty easy to build the links:

    site                      = mysite.com
    site/search               = mysite.com/search
    site/search/stackoverflow = mysite.com/search/stackoverflow
    

    for the sliding part, you need to pick up the “onhashchange” event which detects the changes to the value of the hash. The event always happens when you click a link that has href="#somevalue" – note the href having “#”. you also notice that the page does not go anywhere (that’s where AJAX magic comes to play later).

    for modern browsers, you can detect hashchange using jQuery or plain JS:

    $(window).on('hashchange',function(){
        //do whatever you want when the hash changes
    });
    
    //or
    
    window.onhashchange = function(){
        //do whatever you want when the hash changes
    }
    

    for older browsers, you have to set a timer that checks the previous vs current value of the window.location.hash

    (function timer(prevHash){
        var currentHash = window.location.hash;
        if(prevHash !== currentHash){
            //do whatever you want when the hash changes
        }
        setTimeout(function(){
            timer(currentHash);
        },1000);
    }();
    

    the sliding effect can be achieved using jQuery .animate(). you can load the new page via AJAX (depending on the page you determined using the parsed hash), append the loaded page, slide the contents, and boom! you are done. It’s pretty easy for everyone to make if they know the gears that make the clock turn.

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

Sidebar

Related Questions

So I'm clicking on this link: <a href=intent://www.google.com#Intent;scheme=http;action=android.intent.action.VIEW;end>Google</a> (I know its a silly example,
So that clicking an url like this app://file1.html on the iphone will open your
Clicking on an EditText, the device displays the keyboard. Is there any way, in
Upon clicking on a link, I am bringing in some images from a JSON
On clicking a link, a div is created which is draggable. I have another
I was clicking elements just fine before, and this all worked, however now when
When clicking a link in Firefox 10, the document.readyState == 'complete' until the request
After clicking on the disclosure button from an annotation, you will end up with
On clicking a link, it should redirect to the current page. How do I
When clicking an input field on an iOS device, it will zoom in on

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.