Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F947728
ApplicationState.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
969 B
Subscribers
None
ApplicationState.js
View Options
/*
ApplicationState is an object that represents the application state.
It will be given to dojo.undo.browser to represent the current application state.
*/
ApplicationState
=
function
(
stateData
,
outputDivId
,
backForwardOutputDivId
,
bookmarkValue
){
this
.
stateData
=
stateData
;
this
.
outputDivId
=
outputDivId
;
this
.
backForwardOutputDivId
=
backForwardOutputDivId
;
this
.
changeUrl
=
bookmarkValue
;
}
ApplicationState
.
prototype
.
back
=
function
(){
this
.
showBackForwardMessage
(
"BACK for State Data: "
+
this
.
stateData
);
this
.
showStateData
();
}
ApplicationState
.
prototype
.
forward
=
function
(){
this
.
showBackForwardMessage
(
"FORWARD for State Data: "
+
this
.
stateData
);
this
.
showStateData
();
}
ApplicationState
.
prototype
.
showStateData
=
function
(){
dojo
.
byId
(
this
.
outputDivId
).
innerHTML
+=
this
.
stateData
+
'<br />'
;
}
ApplicationState
.
prototype
.
showBackForwardMessage
=
function
(
message
){
dojo
.
byId
(
this
.
backForwardOutputDivId
).
innerHTML
+=
message
+
'<br />'
;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 13:07 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23574
Default Alt Text
ApplicationState.js (969 B)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment