diff options
author | Christian Schneider | 2006-10-26 13:35:12 +0000 |
---|---|---|
committer | Christian Schneider | 2006-10-26 13:35:12 +0000 |
commit | a5a19fd672bc0b8113d620669b557f17dccd343a (patch) | |
tree | 876ba4fec8362ac2e9374f61b9b7f67fcd2b8e59 /itjs/state.html | |
download | itools-a5a19fd672bc0b8113d620669b557f17dccd343a.tar.gz itools-a5a19fd672bc0b8113d620669b557f17dccd343a.tar.bz2 itools-a5a19fd672bc0b8113d620669b557f17dccd343a.zip |
Moved itools to live branch
Diffstat (limited to 'itjs/state.html')
-rw-r--r-- | itjs/state.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/itjs/state.html b/itjs/state.html new file mode 100644 index 0000000..08ab639 --- /dev/null +++ b/itjs/state.html @@ -0,0 +1,29 @@ +<?php header("Cache-Control: max-age=3600"); +return <<<EOF +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<html> +<head> +<title></title> +<script type="text/javascript"> +function state_onload() +{ + if (parent.it_state) + { + if (parent.it_state.ready) + parent.setTimeout(parent.it_state_restore_history, 1); + else + window.setTimeout(state_onload, 90); + } + window.onbeforeunload = state_onbeforeunload; +} +function state_onbeforeunload() +{ + if (parent.it_state) + parent.it_state.store_state(); +} +</script> +</head> +<body onload="state_onload()"><form action=""><input type="hidden" id="state" value=""></form></body> +</html> +EOF +?> |