Name

LzHistory — Manages interaction with the browser history and back button.

Synopsis

JavaScript: LzHistory
Type: Object
Access: public
Topic: LFC.Events
Declared in: WEB-INF/lps/lfc/services/platform/dhtml/LzHistory.js

Description

NOTE: You must load your lzx with the lzt=history wrapper HTML to use LzHistory.

The LzHistory service manages interaction with the browser history and back button. Save state as often as you like, and advance the history when a new 'page' of values is required.

 <form>
     <input type="button" value="0" onclick="lzSetCanvasAttribute('foo', 0)"/> 
     <input type="button" value="1" onclick="lzSetCanvasAttribute('foo', 1)"/> 
 </form>
 

Details

Static Properties (1)

offset
static public var offset = 0.0;

Static Methods (4)

clear()
static public function clear();
next()
static public function next();
Step back one step in the history stack. Adds an item to the browser history stack.
prev()
static public function prev();
Step forward one step in the history stack. Adds an item to the browser history stack.
save()
static public function save(who, prop, val);
Saves a value and attribute name callback in the current offset of the history stack. When the browser back button causes the history offset to change, the attribute will get set to the value saved at that offset, e.g. scope.setAttribute('attribute_name_to_set', value).

Static Events (1)

onoffset
static public event onoffset;

JavaScript Synopsis

public var LzHistory = { ... };