Skip to main content

Bug Tracker

Side navigation

#6589 closed enhancement (wontfix)

Opened May 20, 2010 06:03PM UTC

Closed November 03, 2010 09:28PM UTC

Last modified March 13, 2012 08:01PM UTC

jQuery.ajax Browser History Enhancement

Reported by: rgrwkmn Owned by:
Priority: undecided Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: history Cc:
Blocked by: Blocking:

I know there are plugins that cover this functionality, but why include another js file and write extra code? Why not build browser history management into the standard ajax method?

You could add a couple properties into the ajax method:

updateHistory - Boolean, defaults to false

historyHash - String, the hash to add to the url

There would also need to be a history init method that would load a url if a location hash exists on page load as well as loads triggered on browser back/forward buttons obviously.

This would take care of very simple ajax loads. The tricky part is keeping the flexibility that a history plugin has, since the developer may use location hashes that don't correspond directly to the url being loaded and also could require post or get data.

Attachments (0)
Change History (2)

Changed November 03, 2010 09:28PM UTC by snover comment:1

priority: → undecided
resolution: → wontfix
status: newclosed

Most people don’t require their AJAX requests to be stateful, and adding statefulness requires the developer perform a fair amount of additional work to manage hash changes. This belongs as a separate plugin, not in core.

Changed December 20, 2010 12:49PM UTC by anonymous comment:2