The plugin uses a cross-browser window.onhashchange event.
jQuery BBQ provides both hash state management, and fragment / query string parse and merge utility methods.
The library is currently used in Drupal 7, Yii PHP framework, Bit.ly and jqGrid.
Here are some key features of "jQuery BBQ":
· Deserialize any params string, the document query string or fragment into an object, including the new jQuery.param format.
· Merge any URL plus query string or fragment params—in an object, params string or second URL (including the current document location)—into a new URL.
· Update the “URL attribute” (ie. a[href], img[src], form[action], etc) in multiple elements, merging any URL plus query string or fragment params—in an object, params string or second URL (including the current document location)—into a new URL, which is then set into that attribute.
· Push (and retrieve) bookmarkable, history-enabling “state” objects or strings onto the document fragment, allowing cross-browser back- and next-button functionality for dynamic web applications.
· Bind event handlers to a normalized, cross-browser hashchange event.
Requirements:
· JavaScript enabled on client side
· jQuery 1.3.2 or higher
What's New in This Release: [ read full changelog ]
· Fixed the stale window.location Safari bug from jQuery hashchange event in BBQ, which was the main reason for the previous release.