2 ApplicationState is an object that represents the application state.
3 It will be given to dojo.undo.browser to represent the current application state.
5 ApplicationState = function(stateData, outputDivId, backForwardOutputDivId, bookmarkValue){
6 this.stateData = stateData;
7 this.outputDivId = outputDivId;
8 this.backForwardOutputDivId = backForwardOutputDivId;
9 this.changeUrl = bookmarkValue;
12 ApplicationState.prototype.back = function(){
13 this.showBackForwardMessage("BACK for State Data: " + this.stateData);
17 ApplicationState.prototype.forward = function(){
18 this.showBackForwardMessage("FORWARD for State Data: " + this.stateData);
22 ApplicationState.prototype.showStateData = function(){
23 dojo.byId(this.outputDivId).innerHTML += this.stateData + '<br />';
26 ApplicationState.prototype.showBackForwardMessage = function(message){
27 dojo.byId(this.backForwardOutputDivId).innerHTML += message + '<br />';