Ignore:
Timestamp:
Aug 21, 2009, 12:42:41 PM (15 years ago)
Author:
quentin
Message:

Use browser-based dupe suppression, so multiple clients can connect to the same terminal and not miss updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/static/ajaxterm/ajaxterm.js

    r2453 r2454  
    1313        var sending=0;
    1414        var rmax=1;
    15         var force=true;
    1615
    1716        var div=document.getElementById(id);
     
    9998                        }
    10099                        var query=query1+send;
    101                         if (force) {
    102                             query=query+"&force=1";
    103                             force=false;
     100                        if (dterm.firstChild && dterm.firstChild.id) {
     101                            query=query+"&h="+dterm.firstChild.id;
    104102                        }
    105103                        r.open("POST",base_path,true);
     
    263261                focus_element.onkeypress=keypress;
    264262                focus_element.onkeydown=keydown;
    265                 force=true;
    266263                timeout=window.setTimeout(update,100);
    267264        }
Note: See TracChangeset for help on using the changeset viewer.