File this one away in the land of hopes and dreams... but now that FireFox 4 is nearing release/widespread adoption, and Chrome and Safari version supporting it are widely distributed, I think it might be nice if Views could use HTML5's 'History API' (really, a JS thing, nothing much to do with HTML) when using AJAX for exposed filters, pagers, sorting, etc.

Great summary of the power of the History API here: http://diveintohtml5.org/history.html

And a demo: http://diveintohtml5.org/examples/history/fer.html

The nice things about this are: (a) AJAX views filtering is still just as awesome, but (b) Browsers' back/forward buttons work in tandem with AJAXified views, and (c) The URL reflects the current state of the View.

GitHub and Facebook are making good use of the History API, and it's simply a progressive enhancement—shouldn't break older browsers. I can't commit code right now, but may be able to soon. I will definitely help debug/test, though, and code when I'm able.

Comments

dawehner’s picture

Category: feature » task

Sounds like a good task. Especially the possibility of bookmarking it seems fine.

jtwalters’s picture

Drupal 7 includes Ben Alman's JQuery BBQ library. This could be used to solve the issue. I may be able to put together something, but no promises.

Anyone up for this?

JayKayAu’s picture

+1, this would be very cool.

murz’s picture

Subscribe.

screenage’s picture

subscribing

murz’s picture

Via JQuery BBQ library we can operate with HTML5 History API for new browsers and via location.hash for old browsers, so using BBQ library will be the best solution.
We can look on overlay.module in Drupal 7.x how this is work.

pjcdawkins’s picture

Any update on this? The feature would rock.

geerlingguy’s picture

See also: http://drupal.org/sandbox/nod_/1391724 (module that requires an external library, but kinda does this).

And #343535: Enable bookmarking of AJAX views (maybe this issue should be marked duplicate?).

murz’s picture

geerlingguy, thanks for the link to module! It works very good! But it have some bugs with exposed filters, I'll try to fix it...

sokrplare’s picture

Status: Active » Closed (duplicate)

Closed as duplicate of #343535: Enable bookmarking of AJAX views.

(Re: comment 8 - yup, after reading both this sure seems like a duplicate. Marking as such to avoid multiple threads here. If I'm wrong, feel free to reopen!)

aaronbauman’s picture

linking parent for the googles