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

  • Home
  • SEARCH
  • 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 6080357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:03:07+00:00 2026-05-23T11:03:07+00:00

i want to get hash parameters value in my java script for example my

  • 0

i want to get hash parameters value in my java script
for example my url should be like that

www.example.com/#!mydata=data&myopt=option

i want to get mydata in variable which will be "data" as value,
and myopt "option"

iam trying to implement google ajax cowling like here
Google Code

and i have tried to implement jquery address

but with big fail so help me either by solving 1st part or give me simple walk through tutorial to implement jquery address to my ajax requests ,thank you

  • 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-23T11:03:07+00:00Added an answer on May 23, 2026 at 11:03 am

    This piece of code will convert any well formed (i.e. properly url-encoded) request string into an object literal with values parsed.

    var s = "#!mydata=data&myopt=option";
    var o = {};
    
    $.each(s.substr(2).split('&'), function(i, elem) {
       var parts = elem.split('=');
       o[parts[0]] = parts[1];
    });
    

    Then you can access values like o.myopt

    UPDATE

    Of course, to get the value from browser’s address, you should use

    var s = window.location.hash;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to get the MD5 Hash of a string value in SQL Server
For a given url, I want to get the name-after-hash's age from the database.
I want to get the logout hash for vBulletin so that I can link
Is it possible to get window.location.hash on the server-side code alone? http://mysite.com/#here I want
I want get all of the Geom objects that are related to a certain
I want to get an overview of files that are updated in TFS (that
I have this pseudo-code in java: bytes[] hash = MD5.hash(example); String hexString = toHexString(hash);
I would like to calculate some sort of hash or checksum value for a
I want to store key/value pairs in URI's after the hash for use on
I get the below response, i want to get value of sessiontoken ie., -4611685691785827288

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.