X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=99a2983fdc342941f9366287cffe998da4e40f1d;hb=43cab39ea58529cd2442c28f4157bb7efc97856f;hp=94de8324c35d886cf03dc376c59f17980d2ec71d;hpb=916634c4a14e890b67d7db91a9ec8477392fd3b6;p=brisk.git diff --git a/web/commons.js b/web/commons.js index 94de832..99a2983 100644 --- a/web/commons.js +++ b/web/commons.js @@ -249,6 +249,7 @@ function send_mesg(mesg) // alert("xhr_wr: "+xhr_wr+" is_conn: "+is_conn); xhr_wr.open('GET', 'index_wr.php?'+(is_conn ? 'sess='+sess+'&' : '')+'mesg='+mesg, (is_conn ? true : false)); + xhr_wr.setRequestHeader("If-Modified-Since", new Date().toUTCString()); xhr_wr.onreadystatechange = function() { return; }; if (typeof(g_debug) == 'number' && g_debug > 0 && typeof(console) == 'object' && typeof(console.log) == 'function') { @@ -329,6 +330,11 @@ function act_chatt(value) } /* Stat: ROOM */ +function act_ping() +{ + send_mesg("ping"); +} + function act_sitdown(table) { send_mesg("sitdown|"+table);