Bug Tracker

Opened 13 years ago

Closed 12 years ago

Last modified 11 years ago

#6589 closed enhancement (wontfix)

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.

Change History (2)

comment:1 Changed 12 years ago by snover

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.

comment:2 Changed 12 years ago by anonymous


Note: See TracTickets for help on using tickets.