Namespace $.ui.simplicityHistory

Ajax history widget for simplicityState This widget binds the simplicityState to the hash fragment of the URL making it possible to use the browser's forward/backward buttons or create a bookmark to a specific search page. The simplicityHistory widget also enables users to search for results, then use the back button to restore/refine the criteria used to perform the search.

This widget should be instantiated no more than one time per page.
Defined in: ui.simplicityHistory.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
Field Summary
Field Attributes Field Name and Description
Widget options.
Method Summary
Method Attributes Method Name and Description
<private> <static>  
Follows widget options regarding bangs (!).
<private> <static>  
Event handler for the hashchange event.
<private> <static>  
Event handler for the simplicityStateChange event.
Namespace Detail
  // Create all simplicityInputs widgets
      url: '/my_search_controller.php'
Depends on the jQuery BBQ plugin.
Field Detail
<static> $.ui.simplicityHistory.options
Widget options.
The location of the simplicityState widget. Defaults to 'body'.
Optional list of characters that should not be escaped. Defaults to ''. This is just a convenience that calls $.param.fragment.noEscape when not the empty string.
Determines if URLs without a bang (!) should be accepted. Defaults to true.
Enable logging of key events to console.log. Defaults to false.
Method Detail
<private> <static> $.ui.simplicityHistory._handleBang(fragment)
Follows widget options regarding bangs (!). Normally bangs are expected and will be removed. For backward compatibility, a fragment without a bang can still be used.
{string} fragment
The fragment containing query string values

<private> <static> $.ui.simplicityHistory._hashChangeHandler()
Event handler for the hashchange event. Applies the new hash state to the simplicityState.

<private> <static> $.ui.simplicityHistory._stateChangeHandler()
Event handler for the simplicityStateChange event. Applies the state to the browser history (hash fragment).

Documentation generated by JsDoc Toolkit 2.4.0