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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:37:32+00:00 2026-05-19T01:37:32+00:00

basically i use functions like: function ver_pregunta(id){ $(#router).fadeOut(100).load(‘./includes/router.php?que=ver_pregunta&id=’+id).fadeIn(1000); return false; } to load new

  • 0

basically i use functions like:

function ver_pregunta(id){
        $("#router").fadeOut(100).load('./includes/router.php?que=ver_pregunta&id='+id).fadeIn(1000);
        return false;
    }

to load new content asynch. ok, but i’m allways using same URL, how Can i just update URL, TITLE and DESCRIPTION with JS/JQuery?

  • 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-19T01:37:33+00:00Added an answer on May 19, 2026 at 1:37 am

    you can only set the name anchor in the url basically yourpage.com/#/someurl/
    it’s not possible to change the whole url without reloading the whole page.

    To set the name anchor you need to do this:

    location.hash='#/my/name/anchor/path';
    

    If you want to use it like that (to point to your page with name anchor) you’ll need to define some kind of check to load proper content with ver_pregunta function, basically take the location.hash e.g. if your url = www.someurl.com/#myid you can run:

    if(location.hash!=""){
       ver_pregunta(location.hash.substring(1));
    }
    

    or better set a list of allowed ids:

    var mypaths={"myid1":1,"myid2":1,"myid3":1}
    

    and compare it with location.hash:

    if(location.hash!="")
      var lh=location.hash.substring(1);
      if(mypaths[lh]==1)ver_pregunta(lh);
    }
    

    For title use:

    $('title').text('new title');
    

    For description:

    $('meta[http-equiv="description"]').attr('content','new description');
    

    If you want to do it for SEO reasons it won’t work, Google bots don’t use JS, they’ll pick up only static HTML

    Cheers

    G.

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

Sidebar

Related Questions

what I want to do is to use something like name=validate[required] basically use it
I'd basically like to use reflection in Powershell, and after dynamically finding the methods
basically my aim is to use JQuery to post back an x & y
Basically I have a few functions that look like this: class MyClass { void
So basically I use jQuery for alternating row colours by selecting all the tr
I have a class that is its own activity that basically i use to
So, I just basically want to use AVFoundation Kit for playing my sound. I
Basically, I tried to use twitter-bootstrap-rails and devise gem in my app. However, when
basically what i want is redirect al request to use HTTPS instead of http
So basically, I use the Python module scipy-cluster to plot a lot of data

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.