3

I'm noticing many websites with this AJAX loaded URL structure "#!", like twitter: (https://twitter.com/#!/apolinariosteps) but I couldn't find it documented (I didn't know what to search)

I'm not really sure if that is the solution (but I still wanna know how to do this), what I want is that when I load some content with Jquery, this cause a URL change somehow so I could share the page with the specific content loaded link.

Thanks in advance

3

1 Answer 1

2

The reload-less URL change exists natively in newer browsers through browser history object and can be easily polyfilled with balupton's history.js. The basic syntax will be history.pushState(stateObject, title, URL).

Sign up to request clarification or add additional context in comments.

1 Comment

@JoãoPauloApolinárioPassos The polyfill should work for most (I.e. IE6+) browsers without the HTML5 browser history object.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.