Name
LzHistory (swf7 swf8 swf9) — Manages interaction with the browser history and back button.
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.
Details
Static Properties (3)
-
isReady
-
static public var isReady = true;
true if history system is ready (for 3.x compatibility)
-
offset
-
static public var offset = 0.0;
-
persist
-
static public var persist = false;
Static Methods (5)
-
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).
-
setPersist()
-
static public function setPersist(p);
Static Events (1)
-
onoffset (swf7 swf8 swf9)
-
static public event onoffset;
JavaScript Synopsis
public var LzHistory = { ... };