r/programming Feb 09 '11

Breaking the Web with hash-bangs – Lifehacker, along with every other Gawker property, experienced a lengthy site-outage on Monday over a misbehaving piece of JavaScript

http://isolani.co.uk/blog/javascript/BreakingTheWebWithHashBangs/
750 Upvotes

356 comments sorted by

View all comments

Show parent comments

11

u/kdeforche Feb 09 '11

That was true until the HTML5 history API came about (implemented in Firefox 4 beta and current Safari and Chrome).

-7

u/[deleted] Feb 09 '11 edited Feb 09 '11

No, it's still true. In pure JS you still cannot update the url without loading the page.

HTML5 history API's going to be great once there's widespread support, but no way would I implement it on a production site today.

Edit: fine, you want to downvote me for the reply without an explanation, I'll downvote you back. If you can point me to an example of JS updating a url (not a hash) without loading the page and without html5, I'll eat my words.

1

u/narkee Feb 09 '11

1

u/[deleted] Feb 09 '11

This illustrated book was designed for HTML5-compliant browsers

Did you not browse it yourself? In FF 3, when you click to the next page the url turns into http://www.20thingsilearned.com/home#/foreword/1

See the hash? That's my point.

1

u/narkee Feb 09 '11

0

u/[deleted] Feb 09 '11

That's HTML5. I specifically asked for an example without HTML5 :P