browser-state

When using Ajax History and Bookmark, is it always good to use "#!" instead of just "#"?

Facebook is doing Ajax History (Back and Forward button) and Bookmark using #! instead of just # in the URL. Is it always a good idea to do that, because I was thinking that a usual anchor could interfere with the Ajax History mechanism to trigger it into processing a normal anchor. So, the Ajax History function will only process a has...

ajax web app : possible to force bookmarking without url's hash-string?

I have a single-page ajax powered web app, however the way my app works is if a hash string is in the url it will load that element which is really useful for people to link to content on it. When it comes to bookmarking/favouriting things are different. My users want to book mark the app and not the current bit of content (hash string)...

How do I use jQuery to create a bookmark-able hash?

I have a single URL i am using as an image gallery. At this URL is a thumbs div (i'm only showing four thumbs for the sake of brevity): <div id="thumbs"> <img src="graphics/thumbs/01.jpg" width="190" height="190" class="thumb objects" id="project01" /> <img src="graphics/thumbs/08.jpg" width="190" height="190" class="thumb web" id="pro...

jQuery "window.location.hash" - getting hash too late?

I'm working on some script but it have a serious problem with hashes. I have a list of link-images like: <a href="#1"><img src="1.jpg" /></a> <a href="#1"><img src="2.jpg" /></a> <a href="#1"><img src="3.jpg" /></a> All I want to do is to load file files/#1.html after clicking the first image, files/#2.html after the second etc. Her...

JavaScript .hashchange performance. Can it bring any slowdown?

jQuery hashchange event For me it looks like most mature solution right now(please correct me if I'm wrong). I really like this plugin for manipulating with browsers hashes. It simplifies js code a lot in some cases. I really want to start use it extensively but I have a question for you. Accordingly to the source it uses loop and che...

Injectng a new history entry without changing the url. Like google maps does.

I'm trying to find the best approach not to break the back button in my javascript application. In my research I'm trying to see what the state of the art is. So I turned to google maps to see how it works. It does have back/forward functionality, but it doesn't change the url when generating a new history entry. Try to go to http://ma...

What are my options for changing the querystring on a URL, and updating browser history?

Is there any way I can change the URL or add more history to the "back button" without having to refresh the entire page? My application is AJAX based and I'd like to add some "undo" events to history so that the user can simply hit back and retain the old values. What's possible today? I hear some of this may be in HTML5 but haven't ...

How do I add a browser history state?

So I see a lot of people recommend the hidden-iFrame hack that is jQuery history plugin but all I really need is the other half of this technique: function whenItemIsClicked() { window.location.hash = this.id; //some other stuff, like Ajax } //and then, if page is reloaded... $(document).ready(function(){ var loc = ...

how facebook controls #! in url

how can i controls #! in url suppose i have the following url http://www.facebook.com/#!/video/video.php?v=1106030301789 now how facebook controls that #! in url.... ...