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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:49:03+00:00 2026-05-26T21:49:03+00:00

After reading online about hash-bangs. Ive decided to stick with our current url structure.

  • 0

After reading online about hash-bangs. Ive decided to stick with our current url structure. Ive been developing a site and making it completely non-javascript. Im coming to a stage where i can start to upgrade some stuff to fancy javascript and ajaxy stuff.

To give a little info. Basically when a user visits the site, the homepage is the main area. It has some statistics and a box. In this box is a companys details with some call to action buttons (go to map, contact, e.c.t.).

When searching for a company, or directly linking to a company you go to

http://mysite.com/company/company-name

This is then url rewritten by apache to

http://mysite.com/index.php?company=company-name

Where then my php script loads the box up with teh company details e.c.t.

Now ive come to do some ajaxy stuff. I want users to be able to click company links on my site and also use the search without having to reload the page. So if they click on teh name of the top viewed company, a quick loading symbol goes in the box and then company details get loaded into that area.

Once again this isn’t too much of an issue. I can do this many ways, classname binding or url regex binding with click handlers on anchors.

However, heres my problem. I need to be able to change the URL so it always reflects the the companys name. Users share links by copy and pasting urls. Even if i provide a “click to copy to clipboard” permalink button, they will hardly use it. Ebay is a classic example, they provide nice url’s for sharing, but its common to see the long ones posted on forums around the place.

Hashbangs or another fragmented url approach would allow me to do this. and i could also attach javascript handlers to the document.load so i can populate the box when a user visits the site from a fragmented url. However if a non-javascript user visits the site using a fragmented url, they will just get the homepage and will have to manually search for teh company.

Given the time and effort ive put into doing everything non-js to begin with. I dont now want to ruin that or have to make a decision on whether to dump the non-js users. However ajax loaded content is very important and so is sharing url’s.

The ideal solution would either be a way of php reading the fragmented url, or a way of javascript changing the url path

Can anyone help with this ?

P.S: apologies for the essay on this. just wanted to give as much info as possible and share the what ive found from research to save time going over things i may have already looked at

  • 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-26T21:49:04+00:00Added an answer on May 26, 2026 at 9:49 pm

    Take a look at the AJAX system I built WITHOUT using hashtags. It uses window.history in modern browsers and falls back for older ones that don’t support cool AJAX stuff.

    http://xeoncross.github.com/MicroStream/

    You can see it live on my site: http://xeoncross.com

    It’s less than 10kB of simple, well commented code so you should be able to grasp it no problem.

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

Sidebar

Related Questions

After reading a bit more about how Gnutella and other P2P networks function, I
After reading Practical Common Lisp I finally understood what the big deal about macros
I am after reading (preferably online) resources to guide newbies in the creation of
After reading some reports about the inadequacies of the Mono 2.6 garbage collector, I
After reading this Testability and Entity Framework 4.0 article about 75 times yesterday, it
After reading up on the JQGrid control, I decided it would be good to
int startingPoint[2]={i,j}; I got this after reading an online code.Is this correct? Means if
I am new to JPA & Hibernate. After reading some online materials I now
After reading the Head First Design Patterns book and using a number of other
After reading this question , I was reminded of when I was taught Java

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.