Subversion Repositories f9daq

Rev

Rev 325 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 325 Rev 343
Line 115... Line 115...
115
        es = new EventSource('runscript.php?code='  + code  );
115
        es = new EventSource('runscript.php?code='  + code  );
116
         
116
         
117
       //a message is received
117
       //a message is received
118
        es.addEventListener('message',EventListener);      
118
        es.addEventListener('message',EventListener);      
119
        es.addEventListener('error', function(e) {
119
        es.addEventListener('error', function(e) {
120
        addLog('Error occurred');
120
        //addLog('Error occurred');
121
        stopTask();
121
        stopTask();
122
        //es.close();
122
        //es.close();
123
    });
123
    });
124
}
124
}
125
 
125