projects
/
xynt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clean of string stream added (we still need <script> objects clean)
[xynt.git]
/
web
/
test-hs.php
diff --git
a/web/test-hs.php
b/web/test-hs.php
index
8d9082d
..
8711ef9
100644
(file)
--- a/
web/test-hs.php
+++ b/
web/test-hs.php
@@
-4,18
+4,49
@@
<script type="text/javascript" src="xynt/xynt-console.js"></script>
<script type="text/javascript" src="xynt/xynt-http-streaming.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript" src="xynt/xynt-console.js"></script>
<script type="text/javascript" src="xynt/xynt-http-streaming.js"></script>
<script type="text/javascript"><!--
-var
allmythings="BEGIN"
;
+var
gst = null
;
+<?php
+ if ($action != 'stop') {
+?>
window.onload = function () {
var hs;
window.onload = function () {
var hs;
- console.log("zugu");
- hs = new http_streaming(window, console);
+ var sess;
+
+ sess = '<?php
+ if (!isset($sess)) {
+ $sess = md5(mt_rand());
+ }
+ printf("%s", $sess);
+?>';
+
+ createCookie('sess', sess, 24*365,cookiepath);
+ gst = new globst();
+ hs = new http_streaming(window, gst, sess, console);
hs.start('test-hs-rd.php');
hs.start('test-hs-rd.php');
+};
+<?php
+ }
+?>
+
+window.onkeypress = function () {
+ console.log("win kpress");
}
}
-
//-->
</script>
//-->
</script>
-<body>
+<body
onabort = "console.log('abort');" onunload = "console.log('unload');" onerror = "console.log('error');" onkeypress = "console.log('keypress');"
>
<div id="cont">INIT</div>
<div id="cont">INIT</div>
+<?php
+ if ($action != 'stop') {
+?>
+ <a href="test-hs.php?action=stop">STOP</a>
+<?php
+ } else {
+?>
+ <a href="test-hs.php?action=start">START</a>
+<?php
+ }
+?>
+
</body>
</html>
</body>
</html>